RotateTransform3D Konstruktorer
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Initierar en ny instans av RotateTransform3D klassen.
Överlagringar
| Name | Description |
|---|---|
| RotateTransform3D() |
Initierar en ny instans av RotateTransform3D klassen. |
| RotateTransform3D(Rotation3D) |
Initierar en ny instans av RotateTransform3D klassen med den angivna rotationen. |
| RotateTransform3D(Rotation3D, Point3D) |
Initierar en ny instans av RotateTransform3D klassen med angivet centrum och rotation. |
| RotateTransform3D(Rotation3D, Double, Double, Double) |
Initierar en ny instans av klassen med hjälp av RotateTransform3D de angivna rotations- och mittkoordinaterna. |
RotateTransform3D()
Initierar en ny instans av RotateTransform3D klassen.
public:
RotateTransform3D();
public RotateTransform3D();
Public Sub New ()
Gäller för
RotateTransform3D(Rotation3D)
Initierar en ny instans av RotateTransform3D klassen med den angivna rotationen.
public:
RotateTransform3D(System::Windows::Media::Media3D::Rotation3D ^ rotation);
public RotateTransform3D(System.Windows.Media.Media3D.Rotation3D rotation);
new System.Windows.Media.Media3D.RotateTransform3D : System.Windows.Media.Media3D.Rotation3D -> System.Windows.Media.Media3D.RotateTransform3D
Public Sub New (rotation As Rotation3D)
Parametrar
- rotation
- Rotation3D
Rotation3D som anger rotationen.
Exempel
//Define a transformation
RotateTransform3D myRotateTransform = new RotateTransform3D(new AxisAngleRotation3D(new Vector3D(0, 2, 0), 1));
//Define an animation for the transformation
DoubleAnimation myAnimation = new DoubleAnimation();
myAnimation.From = 1;
myAnimation.To = 361;
myAnimation.Duration = new Duration(TimeSpan.FromMilliseconds(5000));
myAnimation.RepeatBehavior = RepeatBehavior.Forever;
//Add animation to the transformation
myRotateTransform.Rotation.BeginAnimation(AxisAngleRotation3D.AngleProperty, myAnimation);
//Add transformation to the model
teapotModel.Transform = myRotateTransform;
'Define a transformation
Dim myRotateTransform As New RotateTransform3D(New AxisAngleRotation3D(New Vector3D(0, 2, 0), 1))
'Define an animation for the transformation
Dim myAnimation As New DoubleAnimation()
myAnimation.From = 1
myAnimation.To = 361
myAnimation.Duration = New Duration(TimeSpan.FromMilliseconds(5000))
myAnimation.RepeatBehavior = RepeatBehavior.Forever
'Add animation to the transformation
myRotateTransform.Rotation.BeginAnimation(AxisAngleRotation3D.AngleProperty, myAnimation)
'Add transformation to the model
teapotModel.Transform = myRotateTransform
Gäller för
RotateTransform3D(Rotation3D, Point3D)
Initierar en ny instans av RotateTransform3D klassen med angivet centrum och rotation.
public:
RotateTransform3D(System::Windows::Media::Media3D::Rotation3D ^ rotation, System::Windows::Media::Media3D::Point3D center);
public RotateTransform3D(System.Windows.Media.Media3D.Rotation3D rotation, System.Windows.Media.Media3D.Point3D center);
new System.Windows.Media.Media3D.RotateTransform3D : System.Windows.Media.Media3D.Rotation3D * System.Windows.Media.Media3D.Point3D -> System.Windows.Media.Media3D.RotateTransform3D
Public Sub New (rotation As Rotation3D, center As Point3D)
Parametrar
- rotation
- Rotation3D
Rotation3D som anger rotationen.
- center
- Point3D
Mitten av omvandlingens rotation.
Gäller för
RotateTransform3D(Rotation3D, Double, Double, Double)
Initierar en ny instans av klassen med hjälp av RotateTransform3D de angivna rotations- och mittkoordinaterna.
public:
RotateTransform3D(System::Windows::Media::Media3D::Rotation3D ^ rotation, double centerX, double centerY, double centerZ);
public RotateTransform3D(System.Windows.Media.Media3D.Rotation3D rotation, double centerX, double centerY, double centerZ);
new System.Windows.Media.Media3D.RotateTransform3D : System.Windows.Media.Media3D.Rotation3D * double * double * double -> System.Windows.Media.Media3D.RotateTransform3D
Public Sub New (rotation As Rotation3D, centerX As Double, centerY As Double, centerZ As Double)
Parametrar
- rotation
- Rotation3D
Rotation3D som anger rotationen.
- centerX
- Double
Dubbel som anger X-värdet som ska roteras om.
- centerY
- Double
Dubbel som anger det Y-värde som ska roteras om.
- centerZ
- Double
Dubbel som anger det Z-värde som ska roteras om.