Table of Contents
Previous Section Next Section

atan2

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

The atan2( ) function returns the arc tangent of y/x. It uses the signs of its arguments to compute the quadrant of the return value.

Related functions are asin( ), acos( ), atan( ), tan( ), cos( ), sin( ), sinh( ), cosh( ), and tanh( ).


Table of Contents
Previous Section Next Section