Quaternion Quaternion Quaternion Quaternion Constructors

定義

オーバーロード

Quaternion(Vector3D, Double) Quaternion(Vector3D, Double) Quaternion(Vector3D, Double) Quaternion(Vector3D, Double)

Quaternion 構造体の新しいインスタンスを初期化します。Initializes a new instance of the Quaternion structure.

Quaternion(Double, Double, Double, Double) Quaternion(Double, Double, Double, Double) Quaternion(Double, Double, Double, Double) Quaternion(Double, Double, Double, Double)

Quaternion 構造体の新しいインスタンスを初期化します。Initializes a new instance of the Quaternion structure.

Quaternion(Vector3D, Double) Quaternion(Vector3D, Double) Quaternion(Vector3D, Double) Quaternion(Vector3D, Double)

Quaternion 構造体の新しいインスタンスを初期化します。Initializes a new instance of the Quaternion structure.

public:
 Quaternion(System::Windows::Media::Media3D::Vector3D axisOfRotation, double angleInDegrees);
public Quaternion (System.Windows.Media.Media3D.Vector3D axisOfRotation, double angleInDegrees);
new System.Windows.Media.Media3D.Quaternion : System.Windows.Media.Media3D.Vector3D * double -> System.Windows.Media.Media3D.Quaternion
Public Sub New (axisOfRotation As Vector3D, angleInDegrees As Double)

パラメーター

axisOfRotation
Vector3D Vector3D Vector3D Vector3D

回転の軸を表す Vector3DVector3D that represents the axis of rotation.

angleInDegrees
Double Double Double Double

指定した軸に沿って回転する角度。Angle to rotate around the specified axis, in degrees.

注釈

四元数のプロパティは自動的に計算されます。 WThe W property of the quaternion is computed automatically.

Quaternion(Double, Double, Double, Double) Quaternion(Double, Double, Double, Double) Quaternion(Double, Double, Double, Double) Quaternion(Double, Double, Double, Double)

Quaternion 構造体の新しいインスタンスを初期化します。Initializes a new instance of the Quaternion structure.

public:
 Quaternion(double x, double y, double z, double w);
public Quaternion (double x, double y, double z, double w);
new System.Windows.Media.Media3D.Quaternion : double * double * double * double -> System.Windows.Media.Media3D.Quaternion
Public Sub New (x As Double, y As Double, z As Double, w As Double)

パラメーター

x
Double Double Double Double

新しい Quaternion の X 座標の値。Value of the new Quaternion's X coordinate.

y
Double Double Double Double

新しい Quaternion の Y 座標の値。Value of the new Quaternion's Y coordinate.

z
Double Double Double Double

新しい Quaternion の Z 座標の値。Value of the new Quaternion's Z coordinate.

w
Double Double Double Double

新しい Quaternion の W 座標の値。Value of the new Quaternion's W coordinate.

注釈

軸 (x、y、z) および回転シータの角度の場合、 w四元数の値は次のようになります。For the axis (x, y, z) and angle of rotation theta, the w value for the quaternion is:

w = cos (シータ/2)w = cos(theta/2)

Vector3Dコンストラクターを使用する場合、4番目のパラメーターは角度 (度単位) で、w 計算が実行されることに注意してください。Note that if you use the Vector3D constructor, the fourth parameter is the angle, in degrees, and the w calculation is performed for you.

適用対象