#include <c4d_quaternion.h>
Represents a quaternion.
Has methods for conversion to and from a rotation matrix: GetMatrix/SetMatrix/SetMatrixNorm.
- See also
- Quaternion
◆ Quaternion() [1/2]
◆ Quaternion() [2/2]
◆ GetMatrix()
Derives a rotation matrix from the quaternion.
- Returns
- The rotation matrix.
◆ SetMatrix()
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()
Derives quaternion values from a HPB rotation.
- Parameters
-
◆ SetAxis()
Sets the quaternion values directly.
- Parameters
-
[in] | ax | The direction vector. |
[in] | ww | The rotation angle. |