5.3.10 _Q15atanYByXByPI Function
This function finds the arc tangent of a Q15 value divided by a second Q15 value and then divides the result by PI (π).
Include
<libq.h>
Prototype
_Q15 _Q15atanYByXByPI(_Q15 x, _Q15 y);
Arguments
x |
a fixed-point number in Q15 format, which ranges from -215 to 215-1. The value of this argument ranges from -32768 to 32767. |
y |
a fixed-point number in Q15 format, which ranges from -215 to 215-1. The value of this argument ranges from -32768 to 32767. |
Return Value
This function returns the arc tangent of y divided by x
,
divided by PI, in Q15 format. The value ranges from -8192 to 8192.