語言

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) 範圍為弧 [-π, +π] 度。

適用於