Jump to content

C++ Programming/Code/Standard C Library/Functions/atan2

From Wikibooks, open books for an open world

atan2

[edit | edit source]
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.

Related topics
acos - asin - atan - cos - cosh - sin - sinh - tan - tanh