FREE TRIAL

|

☀
☾

MinMax.Clamp

Clamp(float)

Clamps value to the range defined by Min and Max.

Declaration
public float Clamp(float value)
Parameters
Type Name Description
float value

The value to clamp.

Returns
Type Description
float

value clamped to the range defined by Min and Max.

Clamp(float, float, float)

Clamps value to the range defined by min and max.

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

The value to clamp.

float min

The min value of the acceptable range.

float max

The max value of the acceptable range.

Returns
Type Description
float

value clamped to the range defined by min and max.

☀
☾
In This Article
Legal EmailContact Github
Copyright © 2022 Supernova Technologies, LLC