EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE - Acos (Math.acos Method); Asin (Math.asin Method)

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE
780 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
414 ActionScript classes
acos (Math.acos method)
public static acos(x:Number) : Number
Computes and returns the arc cosine of the number specified in the parameter x, in radians.
Availability: ActionScript 1.0; Flash Lite 2.0 - 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.
Parameters
x:Number - A number from -1.0 to 1.0.
Returns
Number - A number; the arc cosine of the parameter x.
Example
The following example displays the arc cosine for several values.
trace(Math.acos(-1)); // output: 3.14159265358979
trace(Math.acos(0)); // output: 1.5707963267949
trace(Math.acos(1)); // output: 0
See also
asin (Math.asin method), atan (Math.atan method), atan2 (Math.atan2 method),
cos (Math.cos method), sin (Math.sin method), tan (Math.tan method)
asin (Math.asin method)
public static asin(x:Number) : Number
Computes and returns the arc sine for the number specified in the parameter x, in radians.
Availability: ActionScript 1.0; Flash Lite 2.0 - 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.
Parameters
x:Number - A number from -1.0 to 1.0.
Returns
Number - A number between negative pi divided by 2 and positive pi divided by 2.

Table of Contents

Related product manuals