共用方式為


Quaternion.CreateFromYawPitchRoll(Single, Single, Single) 方法

定義

依據指定的繞 Y 軸旋轉、繞 X 軸旋轉和滾動建立一個新四元數。

public:
 static System::Numerics::Quaternion CreateFromYawPitchRoll(float yaw, float pitch, float roll);
public static System.Numerics.Quaternion CreateFromYawPitchRoll (float yaw, float pitch, float roll);
static member CreateFromYawPitchRoll : single * single * single -> System.Numerics.Quaternion
Public Shared Function CreateFromYawPitchRoll (yaw As Single, pitch As Single, roll As Single) As Quaternion

參數

yaw
Single

繞 Y 軸旋轉的角度,以弧度為單位。

pitch
Single

繞 X 軸旋轉的角度,以弧度為單位。

roll
Single

繞 Z 軸滾動的角度,以弧度為單位。

傳回

產生的四元數。

適用於