#include <c4d_quaternion.h>
Represents a quaternion.
Has methods for conversion to and from a rotation matrix: GetMatrix /SetMatrix /SetMatrixNorm.
- See also
- group_c4d_quaternion
◆ Quaternion() [1/2]
◆ Quaternion() [2/2]
◆ GetMatrix()
Matrix64 GetMatrix |
( |
| ) |
const |
Derives a rotation matrix from the quaternion.
- Returns
- The rotation matrix.
◆ SetMatrix()
void SetMatrix |
( |
const Matrix64 & |
_m | ) |
|
Derives quaternion values from a rotation matrix.
- Parameters
-
[in] | _m | The rotation matrix. |
◆ SetMatrixNorm()
void SetMatrixNorm |
( |
const Matrix64 & |
m | ) |
|
Derives quaternion values from a normalized rotation matrix.
- Parameters
-
[in] | m | The normalized rotation matrix. |
◆ SetHPB()
void SetHPB |
( |
const Vector64 & |
hpb | ) |
|
Derives quaternion values from a HPB rotation.
- Parameters
-
◆ SetAxis()
void SetAxis |
( |
const Vector64 & |
ax, |
|
|
const Float64 |
ww |
|
) |
| |
Sets the quaternion values directly.
- Parameters
-
[in] | ax | The direction vector. |
[in] | ww | The rotation angle. |