Math.acos()
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.acos(x:Number) : Number
Parameters
A number from -1.0 to 1.0.
x
Returns
A number; the arc cosine of the parameter
Description
Method; computes and returns the arc cosine of the number specified in the parameter
in radians.
Example
The following example displays the arc cosine for several values.
trace(Math.acos(-1)); // output: 3.14159265358979
trace(Math.acos(0));
trace(Math.acos(1));
See also
Math.asin(), Math.atan(), Math.atan2(), Math.cos(), Math.sin(),
422
Chapter 2: ActionScript Language Reference
.
x
// output: 1.5707963267949
// output: 0
,
x
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