Partilhar via


MathHelper.ToDegrees Method

Converts radians to degrees.

Syntax

'Declaration
Public Shared Function ToDegrees ( _
         radians As Single _
) As Single 
public static float ToDegrees (
         float radians
)
public:
static float ToDegrees(
         float radians
)

Parameters

  • radians
    Type: Single
    The angle in radians.

Return Value

Type: Single
The angle in degrees.

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