Documentation
›
API Reference
›
Object
›
Math
ATan2
Lua
C++
This function gets angle a 2D point forms relative to the origin.
Syntax
number
ATan2
(number y ,number x)
Parameters
y:
the Y coordinate of the point.
x:
the X coordinate of the point.
Returns
Returns the angle defined by the specified point.