MathHelper.ToRadians Method (Microsoft.Xna.Framework)
Converts degrees to radians.
- C#
- VB
- F#
public static float ToRadians( float degrees )
Syntax for VB is not yet implemented.
Syntax for F# is not yet implemented.
Parameters
- degrees
-
Type: System.Single
The angle in degrees.
Return Value
Type: System.SingleThe angle in radians.
This method uses double precission internally,
though it returns single float
Factor = pi / 180
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web