MathHelper.WrapAngle Method

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

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

public static float WrapAngle (
         float angle
)

Parameters

angle
The angle to reduce, in radians.

Return Value

The new angle, in radians.

Xbox 360, Windows XP SP2, Windows Vista, Zune

Community Additions

ADD
Show: