Processors.Round

Static Method in Processors

Declaration

public static float Round(float input)

Description

Rounds the input to the nearest whole number.

Parameters

inputThe input value to round.

Returns

floatThe rounded input value.

Overload

Declaration

public static double Round(double input)

Description

Rounds the input to the nearest whole number.

Parameters

inputThe input value to round.

Returns

doubleThe rounded input value.

Overload

Declaration

public static int Round(int input)

Description

Rounds the input to the nearest whole number.

Parameters

inputThe input value to round.

Returns

intThe rounded input value.

Overload

Declaration

public static Vector2 Round(Vector2 input)

Description

Rounds the input to the nearest whole number.

Parameters

inputThe input value to round.

Returns

Vector2The rounded input value.

Overload

Declaration

public static Vector2Int Round(Vector2Int input)

Description

Rounds the input to the nearest whole number.

Parameters

inputThe input value to round.

Returns

Vector2IntThe rounded input value.

Overload

Declaration

public static Vector3 Round(Vector3 input)

Description

Rounds the input to the nearest whole number.

Parameters

inputThe input value to round.

Returns

Vector3The rounded input value.

Overload

Declaration

public static Vector3Int Round(Vector3Int input)

Description

Rounds the input to the nearest whole number.

Parameters

inputThe input value to round.

Returns

Vector3IntThe rounded input value.

Overload

Declaration

public static Vector4 Round(Vector4 input)

Description

Rounds the input to the nearest whole number.

Parameters

inputThe input value to round.

Returns

Vector4The rounded input value.