- <init>
Builds a pure quaternion from a vector (assuming that the scalar part is zero).
- add
Computes the sum of two quaternions.
- getQ0
Gets the first component of the quaternion (scalar part).
- getQ1
Gets the second component of the quaternion (first component of the vector
part).
- getQ2
Gets the third component of the quaternion (second component of the vector
part).
- getQ3
Gets the fourth component of the quaternion (third component of the vector
part).
- normalize
Computes the normalized quaternion (the versor of the instance). The norm of the
quaternion must not
- dotProduct
Computes the dot-product of two quaternions.
- getNorm
Computes the norm of the quaternion.
- subtract
Subtracts two quaternions.
- getScalarPart
Gets the scalar part of the quaternion.
- getVectorPart
Gets the three components of the vector part of the quaternion.