#include <QuatC.h>
QuatC class defines a quaternion class which is used by the Demopaja system. The quaternion class implements standard set of methods and overdriven operators for easy use.
This class is implemented by the system.
|
Default constructor.
|
|
copy constructor.
|
|
Default destructor.
|
|
Computes the quaternion dot product and returns the result.
|
|
Computes the exponential of the quaternion and returns the result.
|
|
Creates quaternion from axis-angle presentation and stores the result in the quaternion.
|
|
Creates quaternion from axis-angle presentation and stores the result in the quaternion.
|
|
Converts a matrix to quaternion and stores the result to the quaternion.
|
|
Converts the quaternion to unit-length and inverses it and returns the result. Use this method to inverse non-unit-length quaternions. |
|
Computes the logarithm of the quaternion and returns the result.
|
|
Return the squared-length of the quaternion.
|
|
Normalizes the quaternion to unit length and returns the result.
|
|
Multiplies the quaternion by a scalar value specified by the argument and returns the result.
|
|
Multiplies the quaternion specified by argument from the quaternion and returns the result.
|
|
Returns true if both quaternions are non-equal, else false.
|
|
Adds the quaternion specified by argument from the quaternion and returns the result.
|
|
Substracts the quaternion specified by argument from the quaternion and returns the result.
|
|
Negates the quaternion and returns the result.
|
|
Divides the quaternion specified by argument from the quaternion and returns the result.
|
|
Returns true if both quaternions are equal, else false.
|
|
Return reference to the component pointed by the index. The index values from 0 to 3 corresponds to components X, Y, Z, and W respectively. There are two versions of this method, this version is for retrieving the values. |
|
Return reference to the component pointed by the index. The index values from 0 to 3 corresponds to components X, Y, Z, and W respectively. There are two versions of this method, this version is to assign values. |
|
Spherical linear interpolation.
|
|
Converts the quaternion to axis-angle presentation and stores the result to the arguments.
|
|
Converts the quaternion to axis-angle presentation and stores the result to the arguments.
|
|
Converts the quaternion to matrix and returns the result.
|
|
Inverses the quaternion and returns the result. Use this method to inverse unit-length quaternions. |
|
Multiplies the quaternion by a scalar value specified by the argument and returns the result.
|