Version: Unity 6.5 Alpha (6000.5)
LanguageEnglish
  • C#

math.cmax

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static int cmax(int2 x);

Parameters

Parameter Description
x The vector to use when computing the maximum component.

Returns

int The value of the maximum component of the vector.

Description

Returns the maximum component of an int2 vector.


Declaration

public static int cmax(int3 x);

Parameters

Parameter Description
x The vector to use when computing the maximum component.

Returns

int The value of the maximum component of the vector.

Description

Returns the maximum component of an int3 vector.


Declaration

public static int cmax(int4 x);

Parameters

Parameter Description
x The vector to use when computing the maximum component.

Returns

int The value of the maximum component of the vector.

Description

Returns the maximum component of an int4 vector.


Declaration

public static uint cmax(uint2 x);

Parameters

Parameter Description
x The vector to use when computing the maximum component.

Returns

uint The value of the maximum component of the vector.

Description

Returns the maximum component of a uint2 vector.


Declaration

public static uint cmax(uint3 x);

Parameters

Parameter Description
x The vector to use when computing the maximum component.

Returns

uint The value of the maximum component of the vector.

Description

Returns the maximum component of a uint3 vector.


Declaration

public static uint cmax(uint4 x);

Parameters

Parameter Description
x The vector to use when computing the maximum component.

Returns

uint The value of the maximum component of the vector.

Description

Returns the maximum component of a uint4 vector.


Declaration

public static float cmax(float2 x);

Parameters

Parameter Description
x The vector to use when computing the maximum component.

Returns

float The value of the maximum component of the vector.

Description

Returns the maximum component of a float2 vector.


Declaration

public static float cmax(float3 x);

Parameters

Parameter Description
x The vector to use when computing the maximum component.

Returns

float The value of the maximum component of the vector.

Description

Returns the maximum component of a float3 vector.


Declaration

public static float cmax(float4 x);

Parameters

Parameter Description
x The vector to use when computing the maximum component.

Returns

float The value of the maximum component of the vector.

Description

Returns the maximum component of a float4 vector.


Declaration

public static double cmax(double2 x);

Parameters

Parameter Description
x The vector to use when computing the maximum component.

Returns

double The value of the maximum component of the vector.

Description

Returns the maximum component of a double2 vector.


Declaration

public static double cmax(double3 x);

Parameters

Parameter Description
x The vector to use when computing the maximum component.

Returns

double The value of the maximum component of the vector.

Description

Returns the maximum component of a double3 vector.


Declaration

public static double cmax(double4 x);

Parameters

Parameter Description
x The vector to use when computing the maximum component.

Returns

double The value of the maximum component of the vector.

Description

Returns the maximum component of a double4 vector.