Aracılığıyla paylaş


QuaternionRotation3D Oluşturucular

Tanım

QuaternionRotation3D sınıfının yeni bir örneğini başlatır.

Aşırı Yüklemeler

QuaternionRotation3D()

QuaternionRotation3D sınıfının yeni bir örneğini başlatır.

QuaternionRotation3D(Quaternion)

Belirtilen Quaternionkullanarak sınıfının yeni bir örneğini QuaternionRotation3D başlatır.

QuaternionRotation3D()

QuaternionRotation3D sınıfının yeni bir örneğini başlatır.

public:
 QuaternionRotation3D();
public QuaternionRotation3D ();
Public Sub New ()

Örnekler

//Read new settings
try
{
    Double WValue = System.Convert.ToDouble(QuaternionWText.Text);
    Double XValue = System.Convert.ToDouble(QuaternionXText.Text);
    Double YValue = System.Convert.ToDouble(QuaternionYText.Text);
    Double ZValue = System.Convert.ToDouble(QuaternionZText.Text);

    endQuaternion = new Quaternion(XValue, YValue, ZValue, WValue);
}
catch
{
    MessageBox.Show("Set non-null values for the quaternion.");
}

myQuaternionRotation3D = new QuaternionRotation3D(endQuaternion);
myRotateTransform3D.Rotation = myQuaternionRotation3D;

//update matrix display
qrotationMatrix3D = myRotateTransform3D.Value;
'Read new settings
Try
    Dim WValue As Double = Convert.ToDouble(QuaternionWText.Text)
    Dim XValue As Double = Convert.ToDouble(QuaternionXText.Text)
    Dim YValue As Double = Convert.ToDouble(QuaternionYText.Text)
    Dim ZValue As Double = Convert.ToDouble(QuaternionZText.Text)

    endQuaternion = New Quaternion(XValue, YValue, ZValue, WValue)
Catch
    MessageBox.Show("Set non-null values for the quaternion.")
End Try

myQuaternionRotation3D = New QuaternionRotation3D(endQuaternion)
myRotateTransform3D.Rotation = myQuaternionRotation3D

'update matrix display
qrotationMatrix3D = myRotateTransform3D.Value

Şunlara uygulanır

QuaternionRotation3D(Quaternion)

Belirtilen Quaternionkullanarak sınıfının yeni bir örneğini QuaternionRotation3D başlatır.

public:
 QuaternionRotation3D(System::Windows::Media::Media3D::Quaternion quaternion);
public QuaternionRotation3D (System.Windows.Media.Media3D.Quaternion quaternion);
new System.Windows.Media.Media3D.QuaternionRotation3D : System.Windows.Media.Media3D.Quaternion -> System.Windows.Media.Media3D.QuaternionRotation3D
Public Sub New (quaternion As Quaternion)

Parametreler

quaternion
Quaternion

Ara değerin arandığı döndürmeyi belirten quaternion.

Örnekler

//Read new settings
try
{
    Double WValue = System.Convert.ToDouble(QuaternionWText.Text);
    Double XValue = System.Convert.ToDouble(QuaternionXText.Text);
    Double YValue = System.Convert.ToDouble(QuaternionYText.Text);
    Double ZValue = System.Convert.ToDouble(QuaternionZText.Text);

    endQuaternion = new Quaternion(XValue, YValue, ZValue, WValue);
}
catch
{
    MessageBox.Show("Set non-null values for the quaternion.");
}

myQuaternionRotation3D = new QuaternionRotation3D(endQuaternion);
myRotateTransform3D.Rotation = myQuaternionRotation3D;

//update matrix display
qrotationMatrix3D = myRotateTransform3D.Value;
'Read new settings
Try
    Dim WValue As Double = Convert.ToDouble(QuaternionWText.Text)
    Dim XValue As Double = Convert.ToDouble(QuaternionXText.Text)
    Dim YValue As Double = Convert.ToDouble(QuaternionYText.Text)
    Dim ZValue As Double = Convert.ToDouble(QuaternionZText.Text)

    endQuaternion = New Quaternion(XValue, YValue, ZValue, WValue)
Catch
    MessageBox.Show("Set non-null values for the quaternion.")
End Try

myQuaternionRotation3D = New QuaternionRotation3D(endQuaternion)
myRotateTransform3D.Rotation = myQuaternionRotation3D

'update matrix display
qrotationMatrix3D = myRotateTransform3D.Value

Şunlara uygulanır