47 #ifndef __GLQUATERNION_H__
48 #define __GLQUATERNION_H__
63 template<
typename BaseVecT>
72 Quaternion(ValueType pitch, ValueType yaw, ValueType roll);
73 Quaternion(ValueType x, ValueType y, ValueType z, ValueType w);
79 void fromAxis(ValueType *vec, ValueType angle);
80 void fromAxis(BaseVecT axis, ValueType angle);
81 void fromEuler(ValueType pitch, ValueType yaw, ValueType roll);
83 void getAxisAngle(BaseVecT *axis, ValueType *angle);
87 void printDebugInfo();
113 template<
typename BaseVecT>
116 return os <<
"Quaternion: " << q.
W() <<
" " << q.
X() <<
" " << q.
Y() <<
" " << q.
Z() << endl;
120 #include "Quaternion.tcc"