Encapsulation of an axis/angle rotation that avoids gimbal lock. More...
#include <Quaternion.hpp>
Public Member Functions | |
Quaternion (float angle, const Vector &axis) | |
Matrix | getMatrix () const |
Quaternion | operator* (const Quaternion &B) |
void | print () |
void | set (float angle, const Vector &axis) |
void | rotate (float angle, const Vector &axis) |
string | toString () const |
Protected Member Functions | |
void | normalize () |
Private Attributes | |
float | s |
Vector | v |
Encapsulation of an axis/angle rotation that avoids gimbal lock.
Matrix getMatrix | ( | ) | const |
Returns a matrix representing the rotation.