2.7.2.4 atan2

Declaration:

double atan2(doubly y, double x);Returns the arc tangent in radians of y/x based on the signs of both values to determine the correct quadrant.

Range:

Both y and x cannot be zero. The returned value is in the range of -p/2 to +p/2 (inclusive).