Parameters
A number from -1.0 to 1.0.
x
Returns
A number between negative pi divided by 2 and positive pi divided by 2.
Description
Method; computes and returns the arc sine for the number specified in the parameter
in radians.
Example
The following example displays the arc sine for several values.
trace(Math.asin(-1)); // output: -1.5707963267949
trace(Math.asin(0));
trace(Math.asin(1));
See also
Math.acos(), Math.atan(), Math.atan2(), Math.cos(), Math.sin(),
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));
// output: 0
// output: 1.5707963267949
. The return value is between negative pi divided by 2 and positive pi divided
// output: 0
// output: 0.785398163397448
,
x
Math.tan()
Math.atan()
347
Need help?
Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?