Atan (Math.atan Method) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

Example
The following example displays the arc sine for several values.
trace(Math.asin(-1)); // output: -1.5707963267949
trace(Math.asin(0)); // output: 0
trace(Math.asin(1)); // output: 1.5707963267949
See also
acos (Math.acos method)
cos (Math.cos method)

atan (Math.atan method)

public static atan(tangent:Number) : Number
Computes and returns the value, in radians, of the angle whose tangent is specified in the
parameter
. The return value is between negative pi divided by 2 and positive pi
tangent
divided by 2.
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
- A number that represents the tangent of an angle.
tangent:Number
Returns
- A number between negative pi divided by 2 and positive pi divided by 2.
Number
Example
The following example displays the angle value for several tangents.
trace(Math.atan(-1)); // output: -0.785398163397448
trace(Math.atan(0)); // output: 0
trace(Math.atan(1)); // output: 0.785398163397448
See also
acos (Math.acos method)
cos (Math.cos method)
,
atan (Math.atan method)
,
sin (Math.sin method)
,
asin (Math.asin method)
,
sin (Math.sin method)
,
atan2 (Math.atan2 method)
,
tan (Math.tan method)
,
atan2 (Math.atan2 method)
,
tan (Math.tan method)
,
,
Math
415

Advertisement

Table of Contents
loading

Table of Contents