float Maths.ArcTan2(float y, float x)
Calculates the arctangent of y/x. This is well defined for every point other than the origin,
even if x equals 0 and y does not equal 0. The result is returned in radians.
To convert an angle in radians to degrees, use Maths.RadiansToDegrees.
Example:
float angle = Maths.ArcTan2(-862.42, 78.5149);
calculates the arc-tan of -862.42 / 78.5149 and places it into variable angle.
See Also: Maths.DegreesToRadians,
Maths.ArcTan
|