Click or drag to resize
QuaternionXToQuaternion Method
Return a Quaternion corresponding to the supplied 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 Quaternion ToQuaternion(
	this Vector3 eulerAngles,
	EulerRotationOrder order
)

Parameters

eulerAngles
Type: Vector3
Euler angles in degrees.
order
Type: CandlelightEulerRotationOrder
Euler rotation order. ZXY corresponds to Quaternion.eulerAngles

Return Value

Type: Quaternion
A Quaternion representation of the supplied Euler angles.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Vector3. 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