MathHelper.ToRadians Method

Converts degrees to radians.

Syntax

'Declaration
Public Shared Function ToRadians ( _
         degrees As Single _
) As Single 
public static float ToRadians (
         float degrees
)
public:
static float ToRadians(
         float degrees
)

Parameters

  • degrees
    Type: Single
    The angle in degrees.

Return Value

Type: Single
The 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