03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Example<br />

The following example displays the arc sine for several values.<br />

trace(Math.asin(-1)); // output: -1.5707963267949<br />

trace(Math.asin(0)); // output: 0<br />

trace(Math.asin(1)); // output: 1.5707963267949<br />

See also<br />

acos (Math.acos method), atan (Math.atan method), atan2 (Math.atan2 method),<br />

cos (Math.cos method), sin (Math.sin method), tan (Math.tan method)<br />

atan (Math.atan method)<br />

public static atan(tangent:Number) : Number<br />

Computes <strong>and</strong> returns the value, in radians, of the angle whose tangent is specified in the<br />

parameter tangent. The return value is between negative pi divided by 2 <strong>and</strong> positive pi<br />

divided by 2.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 5 - In Flash Player 4, the methods <strong>and</strong> properties<br />

of the Math class are emulated using approximations <strong>and</strong> might not be as accurate as the nonemulated<br />

math functions that Flash Player 5 supports.<br />

Parameters<br />

tangent:Number - A number that represents the tangent of an angle.<br />

Returns<br />

Number - A number between negative pi divided by 2 <strong>and</strong> positive pi divided by 2.<br />

Example<br />

The following example displays the angle value for several tangents.<br />

trace(Math.atan(-1)); // output: -0.785398163397448<br />

trace(Math.atan(0)); // output: 0<br />

trace(Math.atan(1)); // output: 0.785398163397448<br />

See also<br />

acos (Math.acos method), asin (Math.asin method), atan2 (Math.atan2 method),<br />

cos (Math.cos method), sin (Math.sin method), tan (Math.tan method)<br />

756 <strong>ActionScript</strong> classes

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!