Acos (Math.acos Method); Asin (Math.asin Method) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

trace(num); // output: -12
trace(numAbsolute); // output: 12

acos (Math.acos method)

public static acos(x:Number) : Number
Computes and returns the arc cosine of the number specified in the parameter
Availability: ActionScript 1.0; 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.
Parameters
- A number from -1.0 to 1.0.
x:Number
Returns
- A number; the arc cosine of the parameter
Number
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)

cos (Math.cos method)
asin (Math.asin method)
public static asin(x:Number) : Number
Computes and returns the arc sine for the number specified in the parameter
Availability: ActionScript 1.0; 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.
Parameters
- A number from -1.0 to 1.0.
x:Number
746
ActionScript classes
,
atan (Math.atan method)
,
sin (Math.sin method)
.
x
,
atan2 (Math.atan2 method)
,
tan (Math.tan method)
, in radians.
x
,
, in radians.
x

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF