Recalculates the Quaternion to the axis of the rotating coordinate system.

Namespace:  SGP.XSpace
Assembly:  SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825

Syntax

C#
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
public static void QuaternionToAxes(
	Quaternion q,
	out Vector3 xAxis,
	out Vector3 yAxis,
	out Vector3 zAxis
)

Parameters

q
Type: Quaternion
Rotation.
xAxis
Type: Vector3 %
The return value of the rotation X axis vector.
yAxis
Type: Vector3 %
The return value of the rotation Y axis vector.
zAxis
Type: Vector3 %
The return value of the rotation Z axis vector.

Remarks

The axes are unit orthogonal vectors.

See Also