次の方法で共有


MathHelper.ToRadians Method

Converts degrees to radians.

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

Syntax

public static float ToRadians (
         float degrees
)

Parameters

  • degrees
    The angle in degrees.

Return Value

The angle in radians.

See Also

Reference

MathHelper Class
MathHelper Members
Microsoft.Xna.Framework Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista