#include <c4d_quaternion.h>
Represents a quaternion.
Has methods for conversion to and from a rotation matrix:
GetMatrix
/
SetMatrix
/
SetMatrixNorm
.
Public Attributes |
|
| Float64 | w |
| Vector64 | v |
Constructor/Destructor |
|
| Quaternion () | |
| Quaternion ( _DONTCONSTRUCT vv) | |
Get/Set Matrix |
|
| Matrix64 | GetMatrix (void) const |
| void | SetMatrix (const Matrix64 &_m) |
| void | SetMatrixNorm (const Matrix64 &m) |
Set HPB/Axis |
|
| void | SetHPB (const Vector64 &hpb) |
| void | SetAxis (const Vector64 &ax, const Float64 ww) |
| Quaternion | ( | ) |
Default constructor.
|
explicit |
Default destructor.
| Matrix64 GetMatrix | ( | void | ) | const |
Derives a rotation matrix from the quaternion.
| void SetMatrix | ( | const Matrix64 & | _m | ) |
Derives quaternion values from a rotation matrix.
| [in] | _m | The rotation matrix. |
| void SetMatrixNorm | ( | const Matrix64 & | m | ) |
Derives quaternion values from a normalized rotation matrix.
| [in] | m | The normalized rotation matrix. |
| void SetHPB | ( | const Vector64 & | hpb | ) |
Derives quaternion values from a HPB rotation.
| [in] | hpb | The HPB rotation. |
| void SetAxis | ( | const Vector64 & | ax , |
| const Float64 | ww | ||
| ) |
Sets the quaternion values directly.
| [in] | ax | The direction vector. |
| [in] | ww | The rotation angle. |
| Float64 w |
The rotation angle.
| Vector64 v |
The direction vector.