共用方式為


RotateTransform3D 建構函式

定義

初始化 RotateTransform3D 類別的新執行個體。

多載

RotateTransform3D()

初始化 RotateTransform3D 類別的新執行個體。

RotateTransform3D(Rotation3D)

使用指定的旋轉,初始化 RotateTransform3D 類別的新執行個體。

RotateTransform3D(Rotation3D, Point3D)

使用指定的中心和旋轉,初始化 RotateTransform3D 類別的新執行個體。

RotateTransform3D(Rotation3D, Double, Double, Double)

使用指定的旋轉和中心座標,初始化 RotateTransform3D 類別的新執行個體。

RotateTransform3D()

初始化 RotateTransform3D 類別的新執行個體。

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

適用於

RotateTransform3D(Rotation3D)

使用指定的旋轉,初始化 RotateTransform3D 類別的新執行個體。

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)

參數

rotation
Rotation3D

指定旋轉的 Rotation3D。

範例

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

適用於

RotateTransform3D(Rotation3D, Point3D)

使用指定的中心和旋轉,初始化 RotateTransform3D 類別的新執行個體。

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)

參數

rotation
Rotation3D

指定旋轉的 Rotation3D。

center
Point3D

轉換的旋轉中心。

適用於

RotateTransform3D(Rotation3D, Double, Double, Double)

使用指定的旋轉和中心座標,初始化 RotateTransform3D 類別的新執行個體。

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)

參數

rotation
Rotation3D

指定旋轉的 Rotation3D。

centerX
Double

Double,指定要做為旋轉中心的 X 值。

centerY
Double

Double,指定要做為旋轉中心的 Y 值。

centerZ
Double

Double,指定要做為旋轉中心的 Z 值。

適用於