
Math.asin() Method
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
602
|
ActionScript Language Reference
Arguments
x A number between –1.0 and 1.0 (the cosine of an angle).
Returns
The angle, in radians, whose cosine is x. If x is not in the range –1.0 to 1.0, returns NaN.
Description
The arc cosine function (sometimes written as cos
-1
) is the inverse of the cosine function. It
returns the angle whose cosine has the specified value, in radians. The return value is in the
range of 0 to π (i.e., 0 to 3.14159).
Example
trace (Math.acos(1.0)); // Displays: 0
trace (Math.acos(0.0)); // Displays: 1.5707... (i.e., pi/2)
See Also
Math.asin( ), Math.atan( ), Math.cos( )
Math.asin() Method
compute the arc sine of a number
Flash 5; can be used when exporting Flash 4 movies
Math.asin(x)
Arguments
x A number between –1.0 and 1.0 (the sine of an angle).
Returns
The angle, in radians, whose sine is x. If x is not in the range –1.0 to 1.0, returns NaN.
Description
The arc sine function (sometimes written as sin
-1
) is the inverse of the sine function. It
returns the angle whose sine has the specified value, in radians. The return value is in the
range of –π/2 to π/2 radians.
Example
trace (Math.asin(1.0)); // Displays: 1.5707... (i.e., pi/2)
trace (Math.asin(0.0)); // Displays: 0
See Also
Math.acos( ), Math.atan( ), Math.sin( )
Math.atan() Method
compute the arc tangent ...