|
golib
0.5
|
Quaternion class. More...
#include <goquaternion.h>
Public Member Functions | |
| goQuaternion () | |
| Constructor. | |
| ~goQuaternion () | |
| Destructor. | |
| void | operator= (const goQuaternion< T > &other) |
| Deep copy. More... | |
| void | setRotation (T angle, const goMath::Vector< T > &axis) |
| void | setRotation (T angle, const go3Vector< T > &axis) |
| T | getRotationAngle () const |
| void | getRotationMatrix (T *matrix44) const |
| Column-wise. More... | |
| goQuaternion< T > | operator* (const goQuaternion< T > &other) const |
| Quaternion multiplication. More... | |
| goQuaternion< T > | operator+ (const goQuaternion< T > &other) const |
| Quaternion addition. More... | |
| void | conjugate () |
| Conjugate this quaternion. | |
Public Attributes | |
| go3Vector< T > | v |
| T | scalar |
Quaternion class.
| void goQuaternion< T >::getRotationMatrix | ( | T * | matrix44 | ) | const |
| goQuaternion< T > goQuaternion< T >::operator* | ( | const goQuaternion< T > & | other | ) | const |
Quaternion multiplication.
Calculates this * other.
| other | Right-hand operand |
| goQuaternion< T > goQuaternion< T >::operator+ | ( | const goQuaternion< T > & | other | ) | const |
Quaternion addition.
| other | Right-hand operator |
| void goQuaternion< T >::operator= | ( | const goQuaternion< T > & | other | ) |
Deep copy.
| other | Object to be copied. |