Processors.Clamp01
Static Method in Processors
Declaration
public static float Clamp01(float input)Description
Clamps the input to the range [0..1].
Parameters
| input | The input value to clamp. |
Returns
| float | The clamped input value. |
Overload
Declaration
public static double Clamp01(double input)Description
Clamps the input to the range [0..1].
Parameters
| input | The input value to clamp. |
Returns
| double | The clamped input value. |
Overload
Declaration
public static int Clamp01(int input)Description
Clamps the input to the range [0..1].
Parameters
| input | The input value to clamp. |
Returns
| int | The clamped input value. |
Overload
Declaration
public static Vector2 Clamp01(Vector2 input)Description
Clamps the input to the range [0..1].
Parameters
| input | The input value to clamp. |
Returns
| Vector2 | The clamped input value. |
Overload
Declaration
public static Vector2Int Clamp01(Vector2Int input)Description
Clamps the input to the range [0..1].
Parameters
| input | The input value to clamp. |
Returns
| Vector2Int | The clamped input value. |
Overload
Declaration
public static Vector3 Clamp01(Vector3 input)Description
Clamps the input to the range [0..1].
Parameters
| input | The input value to clamp. |
Returns
| Vector3 | The clamped input value. |
Overload
Declaration
public static Vector3Int Clamp01(Vector3Int input)Description
Clamps the input to the range [0..1].
Parameters
| input | The input value to clamp. |
Returns
| Vector3Int | The clamped input value. |
Overload
Declaration
public static Vector4 Clamp01(Vector4 input)Description
Clamps the input to the range [0..1].
Parameters
| input | The input value to clamp. |
Returns
| Vector4 | The clamped input value. |