Return the angle (in radians) whose tangent is the quotient of two specified numbers.
[in] Y coordinate value.
[in] X coordinate value.
MathArctan2 returns an angle, θ, within the range from -π to π radians, so that MathTan(θ)=y/x.
Please note as follows:
For points on the boundaries of the quadrants, the return value is the following:
Instead of the MathArctan2() function, you can use the atan2() function.