atan2

From Bohemia Interactive Community
Revision as of 14:26, 15 April 2006 by Planck (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

back to COMREF

x atan2 y


Operand types:

x: Number

y: Number

Type of returned value:

Number

Description:

Returns the arctangens of x/y.

Returned value is in degrees, in the range -180 to +180, using the signs of both parameters to determine the quadrant of the return value.


Example:

_angle = 5 atan2 3 ..........Result is 59.0362