語言

MathF.Sin(Single) 方法

定義

回傳指定角度的正弦波。

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

參數

x
Single

取正弦的角度。

傳回

正弦 x

備註

角度 x,必須以弧度為單位。 乘以 MathF.PI/180 即可轉換度數為弧度。

此方法會呼叫底層的 C 執行時,且不同作業系統或架構間的精確結果或有效輸入範圍可能有所不同。

適用於