[]
        
(Showing Draft Content)

C1.Util.DX.DXUtil.Clamp

Clamp Method

Clamp(float, float, float)

Clamps the specified value.

Declaration
public static float Clamp(float value, float min, float max)
Parameters
Type Name Description
float value

The value.

float min

The min.

float max

The max.

Returns
Type Description
float

The result of clamping a value between min and max

Clamp(int, int, int)

Clamps the specified value.

Declaration
public static int Clamp(int value, int min, int max)
Parameters
Type Name Description
int value

The value.

int min

The min.

int max

The max.

Returns
Type Description
int

The result of clamping a value between min and max