NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
float atan2 ( float  y,
float  x 
)
inline

Compute arc tangent with 2 parameters.

Computes the principal value of the arc tangent of y/x, expressed in radians. To compute the value, the function uses the sign of both arguments to determine the quadrant.

See Also
atan()
Parameters
yFloating point value representing a y coordinate.
xFloating point value representing an x coordinate.
Returns
Arc tangent of y/x, in the interval [-pi,+pi] radians.
Warning
This function requires the enhanced NBC/NXC firmware.
Examples:
ex_atan2.nxc.