Method ToDeg
ToDeg(double)
Converts an angle in radians to degrees.
public static double ToDeg(double radians)
Parameters
radiansdoubleAngle in radians.
Returns
- double
Angle in degrees.
Remarks
Fast path returns 0 for radians = 0 to avoid unnecessary multiplications
and potential negative zero (-0) results in some numerics.
- See Also
ToDeg(float)
Converts an angle in radians to degrees (single precision).
public static float ToDeg(float radians)
Parameters
radiansfloatAngle in radians.
Returns
- float
Angle in degrees.
- See Also