|
| quaternion () |
| Construct an identity quaternion.
|
|
| quaternion (T x, T y, T z, T w) |
|
| quaternion (T angle, vec3 axis) |
| Construct a rotation quaternion.
|
|
template<size_t M> |
| quaternion (const matrix< M, M, T > &rotation_matrix_, typename enable_if< M >=3 >::type *=0) |
|
bool | equals (const quaternion &other, T tolerance=std::numeric_limits< T >::epsilon()) const |
|
T | x () const |
|
T | y () const |
|
T | z () const |
|
T | w () const |
|
void | zero () |
|
void | identity () |
|
template<size_t D> |
void | set (const matrix< D, D, T > &rotation_matrix_) |
|
bool | operator== (const T &a) const |
|
bool | operator!= (const T &a) const |
|
bool | operator== (const quaternion &a) const |
|
bool | operator!= (const quaternion &a) const |
|
bool | is_akin (const quaternion &a, const T &delta=std::numeric_limits< T >::epsilon()) |
|
void | conjugate () |
|
quaternion | get_conjugate () const |
|
T | abs () const |
|
T | squared_abs () const |
|
T | normalize () |
|
quaternion | get_normalized () const |
|
quaternion | negate () const |
|
quaternion | operator- () const |
|
quaternion & | operator= (const quaternion &other) |
|
quaternion | operator+ (const quaternion< T > &a) const |
|
quaternion | operator- (const quaternion< T > &a) const |
|
quaternion | operator* (const quaternion< T > &a) const |
|
void | operator+= (const quaternion< T > &a) |
|
void | operator-= (const quaternion< T > &a) |
|
void | operator*= (const quaternion< T > &a) |
|
quaternion | operator* (T a) const |
|
quaternion | operator/ (T a) const |
|
void | operator*= (T a) |
|
void | operator/= (T a) |
|
vector< 3, T > | cross (const quaternion< T > &b) const |
|
T | dot (const quaternion< T > &a) const |
|
quaternion | inverse () |
|
void | normal (const quaternion &aa, const quaternion &bb, const quaternion &cc, const quaternion &dd) |
|
quaternion | normal (const quaternion &aa, const quaternion &bb, const quaternion &cc) |
|
matrix< 3, 3, T > | get_rotation_matrix () const |
|
template<size_t D> |
void | get_rotation_matrix (matrix< D, D, T > &result) const |
|
template<typename T>
class vmml::quaternion< T >
Definition at line 57 of file quaternion.hpp.