Warning: file_put_contents(/ff_f71c697347a1fb2258aeec182ff2fc00a7a8b601d295087a.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
atan2 - OFPEC Scripting Command Reference | OFPEC The Editing Center

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.

Used In

OFP/ArmA

Example

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

Advertisement