Quaternion.CreateFromYawPitchRoll(Single, Single, Single) Quaternion.CreateFromYawPitchRoll(Single, Single, Single) Quaternion.CreateFromYawPitchRoll(Single, Single, Single) Quaternion.CreateFromYawPitchRoll(Single, Single, Single) Method

定義

依據指定的繞 Y 軸旋轉、繞 X 軸旋轉和滾動建立一個新四元數。Creates a new quaternion from the given yaw, pitch, and roll.

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 Single Single Single

繞 Y 軸旋轉的角度,以弧度為單位。The yaw angle, in radians, around the Y axis.

pitch
Single Single Single Single

繞 X 軸旋轉的角度,以弧度為單位。The pitch angle, in radians, around the X axis.

roll
Single Single Single Single

繞 Z 軸滾動的角度,以弧度為單位。The roll angle, in radians, around the Z axis.

傳回

產生的四元數。The resulting quaternion.

適用於