![]() |
![]()
| ![]() |
![]()
NAMEal_fixatan2 - Allegro 5 API SYNOPSIS
DESCRIPTIONThis is a fixed point version of the libc atan2() routine. It computes the arc tangent of y / x, but the signs of both arguments are used to determine the quadrant of the result, and x is permitted to be zero. This function is useful to convert Cartesian coordinates to polar coordinates. Example:
RETURN VALUEReturns the arc tangent of y / x in fixed point binary format angle, from -128 to 128. If both x and y are zero, returns zero and sets Allegro’s errno to EDOM.
|