語言

NFloat.Atan2(NFloat, NFloat) 方法

定義

計算兩個值商的弧切線。

public:
 static System::Runtime::InteropServices::NFloat Atan2(System::Runtime::InteropServices::NFloat y, System::Runtime::InteropServices::NFloat x) = System::Numerics::IFloatingPointIeee754<System::Runtime::InteropServices::NFloat>::Atan2;
public static System.Runtime.InteropServices.NFloat Atan2(System.Runtime.InteropServices.NFloat y, System.Runtime.InteropServices.NFloat x);
static member Atan2 : System.Runtime.InteropServices.NFloat * System.Runtime.InteropServices.NFloat -> System.Runtime.InteropServices.NFloat
Public Shared Function Atan2 (y As NFloat, x As NFloat) As NFloat

參數

y
NFloat

一個點的 y 座標。

x
NFloat

一個點的 x 座標。

傳回

除以 y的弧切線x。

實作

備註

此計算 arctan(y / x) 範圍為弧 [-π, +π] 度。

適用於