Processors.Clamp01

Static Method in Processors

Declaration

public static float Clamp01(float input)

Description

Clamps the input to the range [0..1].

Parameters

inputThe input value to clamp.

Returns

floatThe clamped input value.

Overload

Declaration

public static double Clamp01(double input)

Description

Clamps the input to the range [0..1].

Parameters

inputThe input value to clamp.

Returns

doubleThe clamped input value.

Overload

Declaration

public static int Clamp01(int input)

Description

Clamps the input to the range [0..1].

Parameters

inputThe input value to clamp.

Returns

intThe clamped input value.

Overload

Declaration

public static Vector2 Clamp01(Vector2 input)

Description

Clamps the input to the range [0..1].

Parameters

inputThe input value to clamp.

Returns

Vector2The clamped input value.

Overload

Declaration

public static Vector2Int Clamp01(Vector2Int input)

Description

Clamps the input to the range [0..1].

Parameters

inputThe input value to clamp.

Returns

Vector2IntThe clamped input value.

Overload

Declaration

public static Vector3 Clamp01(Vector3 input)

Description

Clamps the input to the range [0..1].

Parameters

inputThe input value to clamp.

Returns

Vector3The clamped input value.

Overload

Declaration

public static Vector3Int Clamp01(Vector3Int input)

Description

Clamps the input to the range [0..1].

Parameters

inputThe input value to clamp.

Returns

Vector3IntThe clamped input value.

Overload

Declaration

public static Vector4 Clamp01(Vector4 input)

Description

Clamps the input to the range [0..1].

Parameters

inputThe input value to clamp.

Returns

Vector4The clamped input value.