Single.Atan2(Single, Single) 方法

定义

计算两个值的商的反正切值。

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)弧度为单位计算[-π, +π]

适用于