_Q16atanYByXByPI Function

This function finds the arc tangent of a Q16 value divided by a second Q16 value and then divides the result by PI (π).

Include

<libq.h>

Prototype

_Q16 _Q16atanYByXByPI(_Q16 x, _Q16 y);

Arguments

x a fixed-point number in Q16 format. The value of this argument ranges from -2147483648 to 2147483647.
y a fixed-point number in Q16 format. The value of this argument ranges from -2147483648 to 2147483647.

Return Value

This function returns the arc tangent of y divided by x, divided by PI, in Q16 format. The value ranges from -2147483648 to 2147483647.