MathHelper.WrapAngle Method (Microsoft.Xna.Framework)
Reduces a given angle to a value between π and -π.
- C#
- VB
- F#
public static float WrapAngle( float angle )
Syntax for VB is not yet implemented.
Syntax for F# is not yet implemented.
Parameters
- angle
-
Type: System.Single
The angle to reduce, in radians.
Return Value
Type: System.SingleThe new angle, in radians.
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web