Holds a quaternion (a 3D vector and a scalar value). More...
Public Member Functions | |
| Quaternion () noexcept | |
| Quaternion (const Quaternion &other) noexcept | |
| Quaternion (const Vector3D< Type > &vectorPart, const Type &scalarPart) noexcept | |
| Quaternion (const Type &x, const Type &y, const Type &z, const Type &w) noexcept | |
| Quaternion & | operator= (const Quaternion &other) noexcept |
| Quaternion & | operator*= (const Quaternion &other) noexcept |
| Type | length () const noexcept |
| Type | normal () const noexcept |
| Quaternion | normalised () const noexcept |
| Matrix3D< Type > | getRotationMatrix () const noexcept |
| Returns the matrix that will perform the rotation specified by this quaternion. | |
Static Public Member Functions | |
| static Quaternion | fromAngle (const Type &angle, const Vector3D< Type > &axis) noexcept |
| Creates a quaternion from an angle and an axis. | |
Public Attributes | |
| Vector3D< Type > | vector |
| The vector part of the quaternion. | |
| Type | scalar |
| The scalar part of the quaternion. | |
Holds a quaternion (a 3D vector and a scalar value).
|
noexcept |
Referenced by Quaternion< GLfloat >::fromAngle(), and Quaternion< GLfloat >::normalised().
|
noexcept |
|
noexcept |
|
noexcept |
|
staticnoexcept |
Creates a quaternion from an angle and an axis.
|
noexcept |
|
noexcept |
|
noexcept |
Referenced by Quaternion< GLfloat >::normalised().
|
noexcept |
Referenced by Quaternion< GLfloat >::getRotationMatrix(), and Quaternion< GLfloat >::length().
|
noexcept |
|
noexcept |
Returns the matrix that will perform the rotation specified by this quaternion.
Referenced by Draggable3DOrientation::getRotationMatrix().
| Vector3D<Type> Quaternion< Type >::vector |
The vector part of the quaternion.
Referenced by Quaternion< GLfloat >::getRotationMatrix(), Quaternion< GLfloat >::normal(), Quaternion< GLfloat >::normalised(), Quaternion< GLfloat >::operator*=(), and Quaternion< GLfloat >::operator=().
| Type Quaternion< Type >::scalar |
The scalar part of the quaternion.
Referenced by Quaternion< GLfloat >::getRotationMatrix(), Quaternion< GLfloat >::normal(), Quaternion< GLfloat >::normalised(), Quaternion< GLfloat >::operator*=(), and Quaternion< GLfloat >::operator=().