Export (0) Print
Expand All

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
)

Parameters

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

Vector3D that specifies the axis around which to rotate.

angle
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

Supported in: 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft