Creates a new Quaternion object.
The x value of the quaternion.
The y value of the quaternion.
The z value of the quaternion.
The w value of the quaternion.
The w value of the quaternion.
The x value of the quaternion.
The y value of the quaternion.
The z value of the quaternion.
Returns the magnitude of the quaternion object.
Clones the quaternion.
An exact duplicate of the current Quaternion.
Copies the data from a quaternion into this instance.
The quaternion to copy from.
Fills the quaternion object with values representing the given rotation around a vector.
The axis around which to rotate
The angle in radians of the rotation.
Fills the quaternion object with values representing the given euler rotation.
The angle in radians of the rotation around the ax axis.
The angle in radians of the rotation around the ay axis.
The angle in radians of the rotation around the az axis.
Extracts a quaternion rotation matrix out of a given Matrix3D object.
The Matrix3D out of which the rotation will be extracted.
Linearly interpolates between two quaternions.
The first quaternion to interpolate.
The second quaternion to interpolate.
The interpolation weight, a value between 0 and 1.
Fills the quaternion object with the result from a multiplication of two quaternion objects.
The first quaternion in the multiplication.
The second quaternion in the multiplication.
Normalises the quaternion object.
Rotates a point.
The Vector3D object to be rotated.
An optional Vector3D object that will contain the rotated coordinates. If not provided, a new object will be created.
A Vector3D object containing the rotated point.
Spherically interpolates between two quaternions, providing an interpolation between rotations with constant angle change rate.
The first quaternion to interpolate.
The second quaternion to interpolate.
The interpolation weight, a value between 0 and 1.
Fills a target Vector3D object with the Euler angles that form the rotation represented by this quaternion.
An optional Vector3D object to contain the Euler angles. If not provided, a new object is created.
The Vector3D containing the Euler angles.
Converts the quaternion to a Matrix3D object representing an equivalent rotation.
An optional Matrix3D container to store the transformation in. If not provided, a new object is created.
A Matrix3D object representing an equivalent rotation.
Converts the quaternion to a Vector.<Number> matrix representation of a rotation equivalent to this quaternion.
The Vector.<Number> to contain the raw matrix data.
If true, the last row will be omitted, and a 4x3 matrix will be generated instead of a 4x4.
Used to trace the values of a quaternion.
A string representation of the quaternion object.
Generated using TypeDoc
A Quaternion object which can be used to represent rotations.