Class: Quaternion

Quaternion(options)

new Quaternion(options)

A Quaternion.

Parameters:
Name Type Description
options Object
Properties
Name Type Attributes Default Description
x number <optional>
0

The x value.

y number <optional>
0

The y value.

z number <optional>
0

The z value.

w number <optional>
1

The w value.

Source:

Methods

clone() → {Quaternion}

Clone a copy of this quaternion.

Source:
Returns:

The cloned quaternion.

Type
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 Quaternion

The quaternion to multiply with.

Source:

norm()

Return the norm of this quaternion.

Source:

normalize()

Perform a normalization on this quaternion.

Source: