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

Compute arc tangent with 2 parameters (degrees).

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

Parameters
yFloating point value representing a y coordinate.
xFloating point value representing an x coordinate.
Returns
Arc tangent of y/x, in the interval [-180,+180] degrees.
Warning
This function requires the enhanced NBC/NXC firmware.
Examples:
ex_atan2d.nxc.