Method Clamp01
Clamp01(Single)
Clamps the given value between the 0 and 1. If the value is between 0 and 1, value is returned
Declaration
public static float Clamp01(float value)
Parameters
Type | Name | Description |
---|---|---|
System.Single | value | The value to clamp |
Returns
Type | Description |
---|---|
System.Single | If the value is between 0 and 1, value is returned |