c:math:atan2

C++ Reference

atan2

Syntax:

    #include <cmath>
    double atan2( double y, double x );

The atan2() function computes the arc tangent of y/x, using the signs of the arguments to compute the quadrant of the return value. The returned values are in the range [-pi, pi]. Note the order of the arguments passed to this function.

Related Topics: acos, asin, atan, cos, cosh, sin, sinh, tan, tanh