Quaternion class for handling spherical interpolation.
#include <Rendering/SceneComponents/Interaction/sphericalmatrixflyto.h>
|
double | w |
|
double | x |
|
double | y |
|
double | z |
|
◆ Quaternion() [1/3]
Constructs a zero (null) quaternion.
◆ Quaternion() [2/3]
Quaternion |
( |
double |
qx, |
|
|
double |
qy, |
|
|
double |
qz, |
|
|
double |
qw |
|
) |
| |
◆ Quaternion() [3/3]
- Parameters
-
m | Transform matrix to construct the quaternion from. |
Constructs a quaternion from a transform matrix. Discards the translation component.
◆ inverse()
Assumes a unit quaternion, so inverse == conjugate.
◆ negate()
Negating all four components represents exactly the same orientation, but is useful for interpolation to help us take the 'short path' rather than the 'long path'
◆ operator*()
◆ toMatrix()