Click or drag to resize
QuaternionXToEulerAngles Method
Return a Quaternion as Euler angles with the specified rotation order.

Namespace: Candlelight
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
C#
public static Vector3 ToEulerAngles(
	this Quaternion q,
	EulerRotationOrder order
)

Parameters

q
Type: Quaternion
A Quaternion.
order
Type: CandlelightEulerRotationOrder
Euler rotation order. ZXY corresponds to Quaternion.eulerAngles.

Return Value

Type: Vector3
An Euler angle representation of the specified Quaternion.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Quaternion. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also