03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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 />

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 />

atan2 (Math.atan2 method)<br />

public static atan2(y:Number, x:Number) : Number<br />

Computes <strong>and</strong> returns the angle of the point y/x in radians, when measured counterclockwise<br />

from a circle's x axis (where 0,0 represents the center of the circle). The return value is<br />

between positive pi <strong>and</strong> negative pi.<br />

Parameters<br />

y:Number - A number specifying the y coordinate of the point.<br />

x:Number - A number specifying the x coordinate of the point.<br />

Returns<br />

Number - A number.<br />

Math 381

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

Saved successfully!

Ooh no, something went wrong!