Zia.Quaternion Class

Represents a 4-dimensional vector which can be used for rotation.

Constructor

Name Description
Quaternion

Constructs a new quaternion.


Constructor

new Zia.Quaternion (x, y, z, w) constructor

Defined in Quaternion.js:41

Constructs a new quaternion.

Parameters

Name Type Description
x Number optional

The value for the x coordinate.

Defaults to 0.0.
y Number optional

The value for the y coordinate.

Defaults to 0.0.
z Number optional

The value for the z coordinate.

Defaults to 0.0.
w Number optional

The value for the w coordinate.

Defaults to 0.0.