Template Struct quaternion

Struct Documentation

template<typename T>
struct quaternion

Public Functions

inline explicit quaternion(T v = 0)
inline quaternion(T ww, T ii, T jj, T kk)
inline quaternion<T> &operator+=(const quaternion<T> &a)
inline quaternion<T> &operator*=(T a)
inline void to_vector(T *p) const

Public Members

T w
T i
T j
T k

Public Static Functions

static inline quaternion<T> convert(const vec3d<T> &p)
static inline quaternion<T> convert(const T *p)

Friends

inline friend std::ostream &operator<<(std::ostream &os, const quaternion<T> &q)
inline friend std::istream &operator>>(std::istream &is, quaternion<T> &q)