Processors.Round
Static Method in Processors
Declaration
public static float Round(float input)Description
Rounds the input to the nearest whole number.
Parameters
| input | The input value to round. |
Returns
| float | The rounded input value. |
Overload
Declaration
public static double Round(double input)Description
Rounds the input to the nearest whole number.
Parameters
| input | The input value to round. |
Returns
| double | The rounded input value. |
Overload
Declaration
public static int Round(int input)Description
Rounds the input to the nearest whole number.
Parameters
| input | The input value to round. |
Returns
| int | The rounded input value. |
Overload
Declaration
public static Vector2 Round(Vector2 input)Description
Rounds the input to the nearest whole number.
Parameters
| input | The input value to round. |
Returns
| Vector2 | The rounded input value. |
Overload
Declaration
public static Vector2Int Round(Vector2Int input)Description
Rounds the input to the nearest whole number.
Parameters
| input | The input value to round. |
Returns
| Vector2Int | The rounded input value. |
Overload
Declaration
public static Vector3 Round(Vector3 input)Description
Rounds the input to the nearest whole number.
Parameters
| input | The input value to round. |
Returns
| Vector3 | The rounded input value. |
Overload
Declaration
public static Vector3Int Round(Vector3Int input)Description
Rounds the input to the nearest whole number.
Parameters
| input | The input value to round. |
Returns
| Vector3Int | The rounded input value. |
Overload
Declaration
public static Vector4 Round(Vector4 input)Description
Rounds the input to the nearest whole number.
Parameters
| input | The input value to round. |
Returns
| Vector4 | The rounded input value. |