Click or drag to resize

QuaternionToAxisAngle Method (Quaternion, Vector3, Single)

Extract axis and angle from Quaternion

Namespace:  Microsoft.DirectX
Assembly:  Demo3D.Common (in Demo3D.Common.dll) Version: 15.0.2.11458
Syntax
C#
public static void ToAxisAngle(
	Quaternion q,
	ref Vector3 axis,
	ref float angle
)

Parameters

q
Type: Microsoft.DirectXQuaternion
Source Quaternion
axis
Type: Microsoft.DirectXVector3
Reference to Vector3 to store the axis in
angle
Type: SystemSingle
Reference to a Single variable to store the angle (in radians) in
See Also