Math.atan(number)
Top  Previous  Next


SWiSH Player Support
SWF4 or later - Supported Internally

Syntax
Math.atan(x)

Arguments
x: A number or expression.

Returns
A number, the angle (in radians) of arc tan (x).

Description
Calculates the arc tan (x).

Sample
Math.atan(1
); // returns 0.785398163397448. (Pi/4 radians = 45 degrees)

Note:
Requires Advanced Math Support. See here for more information

See Also
Math.acos(), Math.acosdeg(), Math.asin(), Math.asindeg(), Math.atan(), Math.atandeg(),
Math.cos(), Math.cosdeg(), Math.sin(), Math.sindeg(), Math.tan(), Math.tandeg(),
Math.atan2(y,x) and Math.atan2deg(y,x).