語言

Single.Atan2Pi(Single, Single) 方法

定義

計算兩個值的商的弧切,並將結果除以 pi。

public:
 static float Atan2Pi(float y, float x) = System::Numerics::IFloatingPointIeee754<float>::Atan2Pi;
public static float Atan2Pi(float y, float x);
static member Atan2Pi : single * single -> single
Public Shared Function Atan2Pi (y As Single, x As Single) As Single

參數

y
Single

一個點的 y 座標。

x
Single

一個點的 x 座標。

傳回

的弧切線 y 除以 x,除以 pi。

實作

備註

此計算 arctan(y / x) / π 在區間 [-1, +1]內。

適用於