Processors.Wrap01

Static Method in Processors

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

inputThe input value to wrap.

Returns

float

Overload

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

inputThe input value to wrap.

Returns

double

Overload

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

inputThe input value to wrap.

Returns

int

Overload

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

inputThe input value to wrap.

Returns

Vector2

Overload

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

inputThe input value to wrap.

Returns

Vector2Int

Overload

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

inputThe input value to wrap.

Returns

Vector3

Overload

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

inputThe input value to wrap.

Returns

Vector3Int

Overload

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

inputThe input value to wrap.

Returns

Vector4