Rotation class which merges quaternion and matrix representation.
For numerical reasons the representation of a rotation via a quaternion is favourable. However application of the rotation to vectors and matrices is numerical more efficient with matrices. Therefore this class combines both representations and takes care that both are in sync.
#include <Rot3.h>
Public Member Functions | |
Rot3 () | |
Rot3 (const Vector3< Type > &rot) | |
Rot3 (const Vector3< Type > &axis, const real_t &angle) | |
Rot3 (const Quaternion< Type > q) | |
const Quaternion< Type > & | getQuaternion () const |
const Matrix3< Type > & | getMatrix () const |
void | rotate (const Vector3< Type > &rot) |
void | rotate (const Vector3< Type > &axis, const real_t &angle) |
void | rotate (const Rot3< Type > &rot) |
Private Attributes | |
Quaternion< Type > | quat_ |
Matrix3< Type > | mat_ |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |