Compartir vía


RotateTransform3D Constructores

Definición

Inicializa una nueva instancia de la clase RotateTransform3D.

Sobrecargas

RotateTransform3D()

Inicializa una nueva instancia de la clase RotateTransform3D.

RotateTransform3D(Rotation3D)

Inicializa una nueva instancia de la clase RotateTransform3D con el giro especificado.

RotateTransform3D(Rotation3D, Point3D)

Inicializa una instancia nueva de la clase RotateTransform3D con el centro y el giro especificados.

RotateTransform3D(Rotation3D, Double, Double, Double)

Inicializa una instancia nueva de la clase RotateTransform3D con las coordenadas de giro y centro especificadas.

RotateTransform3D()

Inicializa una nueva instancia de la clase RotateTransform3D.

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

Se aplica a

RotateTransform3D(Rotation3D)

Inicializa una nueva instancia de la clase RotateTransform3D con el giro especificado.

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)

Parámetros

rotation
Rotation3D

Rotation3D que especifica el giro.

Ejemplos

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

Se aplica a

RotateTransform3D(Rotation3D, Point3D)

Inicializa una instancia nueva de la clase RotateTransform3D con el centro y el giro especificados.

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)

Parámetros

rotation
Rotation3D

Rotation3D que especifica el giro.

center
Point3D

Centro del giro de la transformación.

Se aplica a

RotateTransform3D(Rotation3D, Double, Double, Double)

Inicializa una instancia nueva de la clase RotateTransform3D con las coordenadas de giro y centro especificadas.

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)

Parámetros

rotation
Rotation3D

Rotation3D que especifica el giro.

centerX
Double

Valor de tipo Double que especifica el valor X sobre el que se va a girar.

centerY
Double

Valor de tipo Double que especifica el valor Y sobre el que se va a girar.

centerZ
Double

Valor de tipo Double que especifica el valor Z sobre el que se va a girar.

Se aplica a