#include <math3d.h>
Public Member Functions | |
quaternion< T > & | operator*= (T a) |
quaternion< T > & | operator+= (const quaternion< T > &a) |
quaternion (T v=0) | |
quaternion (T ww, T ii, T jj, T kk) | |
void | to_vector (T *p) const |
Static Public Member Functions | |
static quaternion< T > | convert (const vec3d< T > &p) |
static quaternion< T > | convert (const T *p) |
Public Attributes | |
T | i |
T | j |
T | k |
T | w |
Friends | |
std::ostream & | operator<< (std::ostream &os, const quaternion< T > &q) |
std::istream & | operator>> (std::istream &is, quaternion< T > &q) |
math3d::quaternion< T >::quaternion | ( | T | v = 0 | ) | [inline, explicit] |
math3d::quaternion< T >::quaternion | ( | T | ww, |
T | ii, | ||
T | jj, | ||
T | kk | ||
) | [inline] |
static quaternion<T> math3d::quaternion< T >::convert | ( | const vec3d< T > & | p | ) | [inline, static] |
static quaternion<T> math3d::quaternion< T >::convert | ( | const T * | p | ) | [inline, static] |
quaternion<T>& math3d::quaternion< T >::operator*= | ( | T | a | ) | [inline] |
quaternion<T>& math3d::quaternion< T >::operator+= | ( | const quaternion< T > & | a | ) | [inline] |
void math3d::quaternion< T >::to_vector | ( | T * | p | ) | const [inline] |
std::ostream& operator<< | ( | std::ostream & | os, |
const quaternion< T > & | q | ||
) | [friend] |
std::istream& operator>> | ( | std::istream & | is, |
quaternion< T > & | q | ||
) | [friend] |
T math3d::quaternion< T >::i |
T math3d::quaternion< T >::j |
T math3d::quaternion< T >::k |
T math3d::quaternion< T >::w |