AxisAngleRotation3D.AxisAngleRotation3D(Vector3D, Double) Constructor

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
)
public AxisAngleRotation3D (
	Vector3D axis, 
	double angle
)
public function AxisAngleRotation3D (
	axis : Vector3D, 
	angle : double
)
You cannot use constructors in XAML.

Parameters

axis

Vector3D that specifies the axis around which to rotate.

angle

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));

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show: