atan2: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
[[Category:Scripting Commands]] | |||
[[Category:Scripting Commands OFP 1.97]] | |||
[[Category:Scripting Commands OFP 1.46]] | |||
[[Category:Scripting Commands ArmA]] | |||
back to [[Scripting_Reference#A|COMREF]] | back to [[Scripting_Reference#A|COMREF]] | ||
Revision as of 15:58, 19 April 2006
back to COMREF
x atan2 y
Operand types:
x: Number
y: Number
Type of returned value:
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