TranslateTransform3D Constructor (Vector3D)

 

Initializes a new instance of the TranslateTransform3D class, using the specified offset Vector3D.

Namespace:   System.Windows.Media.Media3D
Assembly:  PresentationCore (in PresentationCore.dll)

public TranslateTransform3D(
	Vector3D offset
)

Parameters

offset
Type: System.Windows.Media.Media3D.Vector3D

Vector3D by which to offset the model.

The following code excerpt creates a new TranslateTransform3D. To use the transformation, add it to the Model3D to be transformed.

TranslateTransform3D cube2Translation = new TranslateTransform3D(new Vector3D(2, 0, 0));

.NET Framework
Available since 3.0
Return to top
Show: