atan2

来自cppreference.com
跳转到: 导航, 搜索

语法:

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

atan2()函数计算 y/x 的反正切,使用参数的正负号来计算返回值的象限。返回值的范围在 [-pi, pi]. 注意传递给此函数参数的顺序。

C++ 也提供下列重载形式:

    #include <cmath>
    float atan2( float y, float x ); // same as atan2f() in C99
    long double atan2( long double y, long double x ); // same as atan2l() in C99

相关主题: acos, asin, atan, cos, cosh, sin, sinh, tan, tanh

个人工具
名字空间
操作
导航
工具箱
其他语言