atan2: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
[[Category:Scripting Commands ArmA|A]]
[[Category:Scripting Commands ArmA|A]]


back to [[Scripting_Reference#A|COMREF]]


<h2 style="color:#000066">'''''x'' atan2 ''y'''''</h2>
<h2 style="color:#000066">'''''x'' atan2 ''y'''''</h2>

Revision as of 12:31, 23 April 2006


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