MathF.Atan(Single) 方法

定義

傳回正切函數 (Tangent) 是指定數字的角。

public:
 static float Atan(float x);
public static float Atan (float x);
static member Atan : single -> single
Public Shared Function Atan (x As Single) As Single

參數

x
Single

代表正切的數字。

傳回

以弧度為單位的角度 θ,其滿足下列條件 -π/2 ≤ θ ≤ π/2。

-或-

如果 x 等於 NaN,則為 NaN;如果 x 等於 NegativeInfinity,則為 -π/2,四捨五入為雙精度 (-1.5707963267949);如果 x 等於 PositiveInfinity,則為 π/2,四捨五入為雙精度 (1.5707963267949)。

備註

正傳回值代表 X 軸的逆時針角度;負傳回值代表順時針角度。

將傳回值乘以 180/ MathF.PI 以從弧度轉換為度。

這個方法會呼叫基礎 C 執行時間,而且不同的作業系統或架構之間,確切的結果或有效輸入範圍可能會不同。

適用於