Processors.Floor

Static Method in Processors

Declaration

public static float Floor(float input)

Description

Rounds the input down to the nearest whole number.

Parameters

inputThe input value to round.

Returns

floatThe rounded input value.

Overload

Declaration

public static double Floor(double input)

Description

Rounds the input down to the nearest whole number.

Parameters

inputThe input value to round.

Returns

doubleThe rounded input value.

Overload

Declaration

public static int Floor(int input)

Description

Rounds the input down to the nearest whole number.

Parameters

inputThe input value to round.

Returns

intThe rounded input value.

Overload

Declaration

public static Vector2 Floor(Vector2 input)

Description

Rounds the input down to the nearest whole number.

Parameters

inputThe input value to round.

Returns

Vector2The rounded input value.

Overload

Declaration

public static Vector2Int Floor(Vector2Int input)

Description

Rounds the input down to the nearest whole number.

Parameters

inputThe input value to round.

Returns

Vector2IntThe rounded input value.

Overload

Declaration

public static Vector3 Floor(Vector3 input)

Description

Rounds the input down to the nearest whole number.

Parameters

inputThe input value to round.

Returns

Vector3The rounded input value.

Overload

Declaration

public static Vector3Int Floor(Vector3Int input)

Description

Rounds the input down to the nearest whole number.

Parameters

inputThe input value to round.

Returns

Vector3IntThe rounded input value.

Overload

Declaration

public static Vector4 Floor(Vector4 input)

Description

Rounds the input down to the nearest whole number.

Parameters

inputThe input value to round.

Returns

Vector4The rounded input value.