SWiSH Player Support
SWF4 or later - Supported Internally
Syntax
Math.degrees(x)
Arguments
x: A number or expression representing the angle in radians.
2 * PI radians = 360 degrees.
Returns
The corresponding number of degrees.
Description
Calculates the number of degrees based on the formula:
degrees = radians * 360 / (2 * pi).
Sample
Math.degrees(Math.PI); // returns 180 degrees
Flash MX Differences
This function is not implemented in Flash MX.
See Also
Math.acos(), Math.asin(), Math.atan(), Math.cos(), Math.cosdeg(), Math.sin(), Math.sindeg(), Math.tan() and Math.tandeg().