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

math.cmin

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 cmin(int2 x);

Parameters

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

Returns

int The value of the minimum component of the vector.

Description

Returns the minimum component of an int2 vector.


Declaration

public static int cmin(int3 x);

Parameters

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

Returns

int The value of the minimum component of the vector.

Description

Returns the minimum component of an int3 vector.


Declaration

public static int cmin(int4 x);

Parameters

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

Returns

int The value of the minimum component of the vector.

Description

Returns the minimum component of an int4 vector.


Declaration

public static uint cmin(uint2 x);

Parameters

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

Returns

uint The value of the minimum component of the vector.

Description

Returns the minimum component of a uint2 vector.


Declaration

public static uint cmin(uint3 x);

Parameters

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

Returns

uint The value of the minimum component of the vector.

Description

Returns the minimum component of a uint3 vector.


Declaration

public static uint cmin(uint4 x);

Parameters

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

Returns

uint The value of the minimum component of the vector.

Description

Returns the minimum component of a uint4 vector.


Declaration

public static float cmin(float2 x);

Parameters

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

Returns

float The value of the minimum component of the vector.

Description

Returns the minimum component of a float2 vector.


Declaration

public static float cmin(float3 x);

Parameters

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

Returns

float The value of the minimum component of the vector.

Description

Returns the minimum component of a float3 vector.


Declaration

public static float cmin(float4 x);

Parameters

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

Returns

float The value of the minimum component of the vector.

Description

Returns the minimum component of a float4 vector.


Declaration

public static double cmin(double2 x);

Parameters

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

Returns

double The value of the minimum component of the vector.

Description

Returns the minimum component of a double2 vector.


Declaration

public static double cmin(double3 x);

Parameters

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

Returns

double The value of the minimum component of the vector.

Description

Returns the minimum component of a double3 vector.


Declaration

public static double cmin(double4 x);

Parameters

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

Returns

double The value of the minimum component of the vector.

Description

Returns the minimum component of a double4 vector.