AxisAngleRotation3D Constructor (Vector3D, Double)
Collapse the table of content
Expand the table of content

AxisAngleRotation3D Constructor (Vector3D, Double)


Creates an instance of a 3-D rotation using the specified axis and angle.

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

public AxisAngleRotation3D(
	Vector3D axis,
	double angle


Type: System.Windows.Media.Media3D.Vector3D

Vector3D that specifies the axis around which to rotate.

Type: System.Double

Double that specifies the angle of rotation, in degrees.

The following code excerpt specifies an AxisAngleRotation3D as the Rotation property of a RotateTransform3D.

//Define a rotation
RotateTransform3D myRotateTransform = new RotateTransform3D(new AxisAngleRotation3D(new Vector3D(0, 1, 0), 1));

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft