Processors.Wrap01
Declaration
public static float Wrap01(float input)Description
Wraps the input to the range [0..1]. If the value exceeds 1 it wraps around to 0, and if the value is less than 0 it wraps back to 1.
Parameters
| input | The input value to wrap. |
Returns
| float |
Declaration
public static double Wrap01(double input)Description
Wraps the input to the range [0..1]. If the value exceeds 1 it wraps around to 0, and if the value is less than 0 it wraps back to 1.
Parameters
| input | The input value to wrap. |
Returns
| double |
Declaration
public static int Wrap01(int input)Description
Wraps the input to the range [0..1]. If the value exceeds 1 it wraps around to 0, and if the value is less than 0 it wraps back to 1.
Parameters
| input | The input value to wrap. |
Returns
| int |
Declaration
public static Vector2 Wrap01(Vector2 input)Description
Wraps the input values to the range [0..1]. If a value exceeds 1 it wraps around to 0, and if a value is less than 0 it wraps back to 1.
Parameters
| input | The input value to wrap. |
Returns
| Vector2 |
Declaration
public static Vector2Int Wrap01(Vector2Int input)Description
Wraps the input values to the range [0..1]. If a value exceeds 1 it wraps around to 0, and if a value is less than 0 it wraps back to 1.
Parameters
| input | The input value to wrap. |
Returns
| Vector2Int |
Declaration
public static Vector3 Wrap01(Vector3 input)Description
Wraps the input values to the range [0..1]. If a value exceeds 1 it wraps around to 0, and if a value is less than 0 it wraps back to 1.
Parameters
| input | The input value to wrap. |
Returns
| Vector3 |
Declaration
public static Vector3Int Wrap01(Vector3Int input)Description
Wraps the input values to the range [0..1]. If a value exceeds 1 it wraps around to 0, and if a value is less than 0 it wraps back to 1.
Parameters
| input | The input value to wrap. |
Returns
| Vector3Int |
Declaration
public static Vector4 Wrap01(Vector4 input)Description
Wraps the input values to the range [0..1]. If a value exceeds 1 it wraps around to 0, and if a value is less than 0 it wraps back to 1.
Parameters
| input | The input value to wrap. |
Returns
| Vector4 |