Class: Quaternion

Quaternion

new Quaternion(options)

A Quaternion.
Parameters:
Name Type Description
options object with following keys: * x - the x value * y - the y value * z - the z value * w - the w value
Source:

Methods

clone()

Clone a copy of this quaternion.
Source:
Returns:
the cloned quaternion

conjugate()

Perform a conjugation on this quaternion.
Source:

invert()

Convert this quaternion into its inverse.
Source:

multiply(q)

Set the values of this quaternion to the product of itself and the given quaternion.
Parameters:
Name Type Description
q the quaternion to multiply with
Source:

norm()

Return the norm of this quaternion.
Source:

normalize()

Perform a normalization on this quaternion.
Source: