1 out of 1 rated this helpful - Rate this topic

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
Type: Single
The angle to reduce, in radians.

Return Value

The new angle, in radians.
Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ