Returns the Quaternion rotation of the coordinate system axes. XSpaceUtility..::.QuaternionToAxes(Quaternion, Vector3%, Vector3%, Vector3%)

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

Syntax

C#
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
public static Quaternion QuaternionFromAxes(
	Vector3 xAxis,
	Vector3 yAxis,
	Vector3 zAxis
)

Parameters

xAxis
Type: Vector3
The X axis after rotation.
yAxis
Type: Vector3
The Y axis after rotation.
zAxis
Type: Vector3
The Z axis after rotation.

Return Value

Axes rotation.

Remarks

Returns rotation that rotates the X, Y, Z axes (vectors [1,0,0], [0,1,0], [0,0,1]) to the resulting axes xAxis, yAxis, zAxis. The axes must be unit orthogonal vectors.

See Also