Method NormalizeAngleDegree
NormalizeAngleDegree(float)
Normalizes the input angle to be in the range of -180 and 180.
Declaration
public static float NormalizeAngleDegree(float angle)
Parameters
| Type | Name | Description |
|---|---|---|
| float | angle | Raw input angle or rotation. |
Returns
| Type | Description |
|---|---|
| float | Returns the angle of rotation between -180 and 180. |