 |
atan2 |
Function (ROM Call 0xF8*) |
Four-quadrant arc tangent of y/x (or argument of the complex number).
atan2 returns the four-quadrant arc tangent of y/x. More precise,
it returns the argument of the complex number x + y i.
So, the result is in the range -pi to pi.
Note: atan2 produces correct results even when the
resulting angle is near pi/2 or -pi/2 (x near
zero). If both x and y are zeros, atan2 returns NAN.
Uses: is_sinf, is_transfinite, is_uinf_or_nan, _bcd_math
Used by: catan, cln, cmd_sinreg, push_rec_to_angle, GR3_handleEvent