MathHelper.ToDegrees Method (Microsoft.Xna.Framework)

Converts radians to degrees.

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

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

radians
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
    
 Web