|
ClanLib
2.3.7
|
Quaternion - Double. More...
#include <quaternion.h>

Public Member Functions | |
| CL_Quaterniond () | |
| CL_Quaterniond (const CL_Quaternionx< double > ©) | |
| CL_Quaterniond (double real, double i, double j, double k) | |
| CL_Quaterniond (double real, const CL_Vec3< double > &imag) | |
| CL_Quaterniond (double euler_x, double euler_y, double euler_z, CL_AngleUnit unit, CL_EulerOrder order) | |
| CL_Quaterniond (const CL_Vec3< double > &euler, CL_AngleUnit unit, CL_EulerOrder order) | |
| CL_Quaterniond (const CL_Angle &euler_x, const CL_Angle &euler_y, const CL_Angle &euler_z, CL_EulerOrder order) | |
Operations | |
| CL_Quaternionx< double > & | multiply (const CL_Mat4< double > &matrix) |
| Multiply this quaternion by a specified matrix. More... | |
| CL_Quaternionx< double > & | multiply (const CL_Quaternionx< double > &quaternion) |
| Multiply this quaternion by another quaternion. More... | |
| void | set (doubleeuler_x, doubleeuler_y, doubleeuler_z, CL_AngleUnit unit, CL_EulerOrder order) |
| void | set (const CL_Vec3< double > &euler, CL_AngleUnit unit, CL_EulerOrder order) |
| void | set (const CL_Angle &euler_x, const CL_Angle &euler_y, const CL_Angle &euler_z, CL_EulerOrder order) |
| CL_Quaternionx< double > & | rotate (const CL_Angle &angle, const CL_Vec3f &axis) |
| CL_Quaternionx< double > & | rotate (const CL_Angle &euler_x, const CL_Angle &euler_y, const CL_Angle &euler_z, CL_EulerOrder order) |
| CL_Quaternionx< double > & | normalize () |
| Normalizes this quaternion. More... | |
| CL_Quaternionx< double > & | inverse () |
| Inverse this quaternion. More... | |
| CL_Vec3< double > | rotate_vector (const CL_Vec3< double > &v) |
| Rotates vector by this quaternion. More... | |
| CL_Vec4< double > | rotate_vector (const CL_Vec4< double > &v) |
Attributes | |
| CL_Mat4< double > | to_matrix () const |
| Convert the quaternion to a rotation matrix. More... | |
| double | magnitude () const |
| Get the quaternion magnitude. More... | |
Operators | |
| CL_Quaternionx< double > | operator* (const CL_Quaternionx< double > &mult) const |
| Multiplication operator. More... | |
Static Public Member Functions | |
| static CL_Quaternionx< double > | axis_angle (const CL_Angle &angle, const CL_Vec3f &axis) |
| static CL_Quaternionx< double > | lerp (const CL_Quaternionx< double > &quaternion_initial, const CL_Quaternionx< double > &quaternion_final, doublelerp_time) |
| Linear Quaternion Interpolation. More... | |
| static CL_Quaternionx< double > | multiply (const CL_Quaternionx< double > &quaternion_1, const CL_Quaternionx< double > &quaternion_2) |
| static CL_Quaternionx< double > | slerp (const CL_Quaternionx< double > &quaternion_initial, const CL_Quaternionx< double > &quaternion_final, doubleslerp_time) |
| Spherical Quaternion Interpolation. More... | |
Public Attributes | |
| union { | |
| Type i | |
| Type x | |
| }; | |
| The imaginary vector part. More... | |
| union { | |
| Type j | |
| Type y | |
| }; | |
| union { | |
| Type k | |
| Type z | |
| }; | |
| double | i |
| double | j |
| double | k |
| double | w |
| The real scalar part. More... | |
| double | x |
| double | y |
| double | z |
Quaternion - Double.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
staticinherited |
|
inherited |
Inverse this quaternion.
This is the same as the conjugate of a quaternion
|
staticinherited |
Linear Quaternion Interpolation.
| quaternion_initial | = Source quaternion |
| quaternion_final | = Destination quaternion |
| lerp_time | = Time in the range of 0.0 to 1.0 |
|
inherited |
Get the quaternion magnitude.
|
staticinherited |
|
inherited |
Multiply this quaternion by a specified matrix.
| matrix | = Matrix to multiply |
|
inherited |
Multiply this quaternion by another quaternion.
This multiplies the quaternion as follows: this = quaternion * this
| quaternion | = Quaternion to multiply |
|
inherited |
Normalizes this quaternion.
|
inlineinherited |
Multiplication operator.
|
inherited |
|
inherited |
|
inherited |
Rotates vector by this quaternion.
| v | = Vertex to rotate |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
staticinherited |
Spherical Quaternion Interpolation.
| quaternion_initial | = Source quaternion |
| quaternion_final | = Destination quaternion |
| slerp_time | = Time in the range of 0.0 to 1.0 |
|
inherited |
Convert the quaternion to a rotation matrix.
This function assumes that the quarternion is normalized.
| union { ... } |
The imaginary vector part.
| union { ... } |
| union { ... } |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
The real scalar part.
|
inherited |
|
inherited |
|
inherited |
1.8.4