C++官网参考链接:https://cplusplus.com/reference/cmath/atan2/
函数
<cmath> <ctgmath>
atan2
C90
double atan2(double y, double x);
C99
double atan2 (double y, double x);
float atan2f (float y, float x);
long double atan2l (long double y, long double x);
C++98
double atan2 (double y, double x);
float atan2 (float y, float x);
long double atan2 (long double y, long double x);
C++11
double atan2 (double y, double x);
float atan2 (float y, float x);
long double atan2 (long double y, long double x);
double atan2 (Type1 y, Type2 x); // additional overloads
用两个形参计算反正切
返回以弧度表示y/x的反正切的值。
为了计算值,函数考虑了两个实参的符号,以确定象限。
在C++中&#