MathHelper.WrapAngle Method

Reduces a given angle to a value between π and -π.

Syntax

'Declaration
Public Shared Function WrapAngle ( _
         angle As Single _
) As Single 
public static float WrapAngle (
         float angle
)
public:
static float WrapAngle(
         float angle
)

Parameters

  • angle
    Type: Single
    The angle to reduce, in radians.

Return Value

Type: Single
The new angle, in radians.

Requirements

Namespace: Microsoft.Xna.Framework

Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

See Also

Reference

MathHelper Class
MathHelper Members
Microsoft.Xna.Framework Namespace

Platforms

Windows Phone