|
Este artigo foi traduzido por máquina. Coloque o ponteiro do mouse sobre as frases do artigo para ver o texto original. Mais informações.
|
Tradução
Original
|
Estrutura Quaternion
Namespace: System.Windows.Media.Media3D
Assembly: PresentationCore (em PresentationCore.dll)
XMLNS para XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
O tipo Quaternion expõe os membros a seguir.
| Nome | Descrição | |
|---|---|---|
![]() | Quaternion(Vector3D, Double) | |
![]() | Quaternion(Double, Double, Double, Double) |
| Nome | Descrição | |
|---|---|---|
![]() | Angle | |
![]() | Axis | |
![]() ![]() | Identity | |
![]() | IsIdentity | |
![]() | IsNormalized | |
![]() | W | |
![]() | X | |
![]() | Y | |
![]() | Z |
| Nome | Descrição | |
|---|---|---|
![]() ![]() | Add | |
![]() | Conjugate | |
![]() | Equals(Object) | |
![]() | Equals(Quaternion) | |
![]() ![]() | Equals(Quaternion, Quaternion) | |
![]() | GetHashCode | |
![]() | GetType | |
![]() | Invert | |
![]() ![]() | Multiply | |
![]() | Normalize | |
![]() ![]() | Parse | |
![]() ![]() | Slerp(Quaternion, Quaternion, Double) | |
![]() ![]() | Slerp(Quaternion, Quaternion, Double, Boolean) | |
![]() ![]() | Subtract | |
![]() | ToString() | |
![]() | ToString(IFormatProvider) |
| Nome | Descrição | |
|---|---|---|
![]() ![]() | Addition | |
![]() ![]() | Equality | |
![]() ![]() | Inequality | |
![]() ![]() | Multiply | |
![]() ![]() | Subtraction |
| Nome | Descrição | |
|---|---|---|
![]() ![]() | IFormattable.ToString |
<!-- Trigger the rotation animation when the 3D object loads. --> <Viewport3D.Triggers> <EventTrigger RoutedEvent="Viewport3D.Loaded"> <BeginStoryboard> <Storyboard> <!-- This animation animates the Rotation property of the RotateTransform3D causing the 3D shape to rotate. --> <QuaternionAnimation Storyboard.TargetName="myQuaternionRotation3D" Storyboard.TargetProperty="Quaternion" From="0,0,1,0" To="0.3, 0.3, 1, 0" Duration="0:0:2" /> </Storyboard> </BeginStoryboard> </EventTrigger> </Viewport3D.Triggers>
'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
//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;
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Função Server Core sem suporte), Windows Server 2008 R2 (Função Server Core com suporte com o SP1 ou posterior, Itanium sem suporte)
O .NET Framework não oferece suporte a todas as versões de cada plataforma. Para obter uma lista das versões com suporte, consulte .Requisitos de sistema do NET Framework.
