Public Member Functions | |
QuaternionAndTranslation (const Matrix4D &m) | |
QuaternionAndTranslation (const Matrix4D &m, const QuaternionAndTranslation &quat) | |
QuaternionAndTranslation | operator- (void) const |
QuaternionAndTranslation | operator * (double scale) const |
QuaternionAndTranslation & | operator *= (double scale) |
QuaternionAndTranslation | operator/ (double scale) const |
QuaternionAndTranslation & | operator/= (double scale) |
QuaternionAndTranslation | operator+ (const QuaternionAndTranslation &q) const |
QuaternionAndTranslation & | operator+= (const QuaternionAndTranslation &q) |
QuaternionAndTranslation | operator- (const QuaternionAndTranslation &q) const |
QuaternionAndTranslation & | operator-= (const QuaternionAndTranslation &q) |
Public Attributes | |
Quaternion | quaternion |
Point3D | translate |
|
This constructor sets the quaternion and translation vector from the transformation matrix |
|
Because the quaternion of a rotation is unique up to sign, the following method sets the quaternion so that it is closest to the input ones |
|
This method scales the transformation parameters. |
|
This method scales the current transformation parameters by a constant factor. |
|
This method adds two sets of transformation parameters and returns their sum. |
|
This method adds a set of transformation parameters to the current transformation parameters. |
|
This method subtracts two sets of transformation parameters and returns their difference. |
|
This method returns the negative of the transformation parameters |
|
This method subtracts a set of transformation parameters from the current transformation parameters. |
|
This method divides the coefficients of a the transformation parameters by a constant factor. |
|
This method divides the coefficients of the current transformation parameters by a constant factor. |
|
The rotation |
|
The translation vector |