MathHelper.ToDegrees Method (Microsoft.Xna.Framework)

Converts radians to degrees.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll
  • C#
  • VB
  • F#
public static float ToDegrees(
	float radians

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.


Type: System.Single
The angle in radians.

Return Value

Type: System.Single
The angle in degrees.
This method uses double precission internally, though it returns single float Factor = 180 / pi
Supported in:

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop