Quaternion - Float.
More...
#include <quaternion.h>
|
| | Quaternionf () |
| |
| | Quaternionf (const Quaternionx< float > ©) |
| |
| | Quaternionf (const Mat4< float > &rotation_matrix) |
| |
| | Quaternionf (float real, float i, float j, float k) |
| |
| | Quaternionf (float real, const Vec3< float > &imag) |
| |
| | Quaternionf (float euler_x, float euler_y, float euler_z, AngleUnit unit, EulerOrder order) |
| |
| | Quaternionf (const Vec3< float > &euler, AngleUnit unit, EulerOrder order) |
| |
| | Quaternionf (const Angle &euler_x, const Angle &euler_y, const Angle &euler_z, EulerOrder order) |
| |
|
| Mat4< float > | to_matrix () const |
| | Convert the quaternion to a rotation matrix. More...
|
| |
| float | magnitude () const |
| | Get the quaternion magnitude. More...
|
| |
|
| Quaternionx< float > | operator* (const Quaternionx< float > &mult) const |
| | Multiplication operator. More...
|
| |
| Quaternionx< float > | operator* (const Mat4< float > &matrix) const |
| |
| bool | operator< (const Quaternionx< float > &other) const |
| | Less operator. More...
|
| |
| bool | operator> (const Quaternionx< float > &other) const |
| | Greater operator. More...
|
| |
| bool | operator<= (const Quaternionx< float > &other) const |
| | Less equal operator. More...
|
| |
| bool | operator>= (const Quaternionx< float > &other) const |
| | Greater equal operator. More...
|
| |
| bool | operator== (const Quaternionx< float > &other) const |
| | Equal operator. More...
|
| |
| bool | operator!= (const Quaternionx< float > &other) const |
| | Not equal operator. More...
|
| |
|
| void | set (floateuler_x, floateuler_y, floateuler_z, AngleUnit unit, EulerOrder order) |
| |
| void | set (const Vec3< float > &euler, AngleUnit unit, EulerOrder order) |
| |
| void | set (const Angle &euler_x, const Angle &euler_y, const Angle &euler_z, EulerOrder order) |
| |
| Quaternionx< float > & | rotate (const Angle &angle, const Vec3f &axis) |
| |
| Quaternionx< float > & | rotate (const Angle &euler_x, const Angle &euler_y, const Angle &euler_z, EulerOrder order) |
| |
| Quaternionx< float > & | normalize () |
| | Normalizes this quaternion. More...
|
| |
| Quaternionx< float > & | inverse () |
| | Inverse this quaternion. More...
|
| |
| Vec3< float > | rotate_vector (const Vec3< float > &v) const |
| | Rotates vector by this quaternion. More...
|
| |
| Vec4< float > | rotate_vector (const Vec4< float > &v) const |
| |
| static Quaternionx< float > | normalize (Quaternionx< float > q) |
| | Normalizes this quaternion. More...
|
| |
| static Quaternionx< float > | inverse (Quaternionx< float > q) |
| | Inverse this quaternion. More...
|
| |
Inverse this quaternion.
This is the same as the conjugate of a quaternion
- Returns
- reference to this object
Inverse this quaternion.
This is the same as the conjugate of a quaternion
- Returns
- reference to this object
Get the quaternion magnitude.
Normalizes this quaternion.
- Returns
- reference to this object
Normalizes this quaternion.
- Returns
- reference to this object
Rotates vector by this quaternion.
- Parameters
-
- Returns
- rotated vector
Calculates the shortest arc quaternion between two vectors.
Calculates the shortest arc quaternion between two vectors.
Spherical Quaternion Interpolation.
- Parameters
-
| quaternion_initial | = Source quaternion |
| quaternion_final | = Destination quaternion |
| slerp_time | = Time in the range of 0.0 to 1.0 |
Convert the quaternion to a rotation matrix.
This function assumes that the quarternion is normalized.
The imaginary vector part.
The documentation for this class was generated from the following file: