Single.Atan2(Single, Single) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
计算两个值的商的反正切值。
public:
static float Atan2(float y, float x) = System::Numerics::IFloatingPointIeee754<float>::Atan2;
public static float Atan2(float y, float x);
static member Atan2 : single * single -> single
Public Shared Function Atan2 (y As Single, x As Single) As Single
参数
- y
- Single
点的 y 坐标。
- x
- Single
点的 x 坐标。
返回
除y法的x反正切值。
实现
注解
这将以间隔arctan(y / x)弧度为单位计算[-π, +π]。