Quaternion

A Quaternion represents the orientation of a transformation.

Constructor

new L3D.Quaternion()

Methods

static conjugate(q, out)

Calculates the conjugate of the quaternion. If the quaternion is normalized, this is faster than invert and produces the same result.

Parameters
q *
out *

static fromEulerAngles(x, y, z, order)

Create a quaternion from an euler angle rotation. Angles are expected in degrees.

Parameters
x *
y *
z *
order *

static inverse(q, out)

Calculates the inverse of the quaternion

Parameters
q *
out *

conjugate(out)

Calculates the conjugate of this quaternion. If the quaternion is normalized, this is faster than invert and produces the same result.

Parameters
out Quaternion
Returns

invert(out)Quaternion

Calculates the inverse of this quaternion

Parameters
out Quaternion
Returns
Quaternion