Math.atan()
Availability
Flash Player 5. In Flash Player 4, the methods and properties of the Math class are emulated using
approximations and might not be as accurate as the non-emulated math functions that Flash
Player 5 supports.
Usage
Math.atan(tangent:Number) : Number
Parameters
A number that represents the tangent of an angle.
tangent
Returns
A number between negative pi divided by 2 and positive pi divided by 2.
Description
Method; computes and returns the value, in radians, of the angle whose tangent is specified in the
parameter
tangent
by 2.
Example
The following example displays the angle value for several tangents.
trace(Math.atan(-1)); // output: -0.785398163397448
trace(Math.atan(0));
trace(Math.atan(1));
See also
Math.acos(), Math.asin(), Math.atan2(), Math.cos(), Math.sin(),
424
Chapter 2: ActionScript Language Reference
. The return value is between negative pi divided by 2 and positive pi divided
// output: 0
// output: 0.785398163397448
Math.tan()
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers