public static atan(tangent:Number) : Number
Computes and returns the value, in radians, of the angle whose tangent is specified in the parameter tangent. The return value is between negative pi divided by 2 and positive pi divided by 2.
tangent:Number - A number that represents the tangent of an angle.
Number - A number between negative pi divided by 2 and positive pi divided by 2.
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
acos (Math.acos method), asin (Math.asin method), atan2 (Math.atan2 method), cos (Math.cos method), sin (Math.sin method), tan (Math.tan method)