MinMax.Clamp
Clamp(float)
Declaration
public float Clamp(float value)
Parameters
Type | Name | Description |
---|---|---|
float | value | The value to clamp. |
Returns
Type | Description |
---|---|
float |
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 |
|