math.atan2
Returns the arc tangent of y/x (in radians), but uses the signs of both parameters to find the quadrant of the result. It also handles correctly the case of x being zero.
math.atan2(y: number, x: number): number
Arguments
Name | Description | Type |
---|---|---|
y | N/A | number |
x | N/A | number |
Returns number