C 库函数 - atan2( ) https://www.runoob.com/cprogramming/c-function-atan2.html C库函数double atan2(double y,double x)返回以弧度表示的y/x的反正切 y和x的值的符号决定了正确的象限 弧度区间为[-pi,+pi] #include <stdio.h> #include <math.h> #define PI 3.14159265 int