SWiSH Player Support
SWF4 or later - Supported Internally
Syntax
Math.radians(x)
Arguments
x: A number or expression representing the angle in degrees.
2 * PI radians = 360 degrees.
Returns
The corresponding number of degrees.
Description
Calculates the number of radians based on the formula:
radians = degrees * 2 * pi / 360.
Sample
Math.radians(360); // returns 2 * pi radians, (6.28318548202515)
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().