D | vec_mat.h | 960 class Quaternion 967 Quaternion () : v(0, 0, 0), w(0) {}; in Quaternion() function 968 Quaternion (const Quaternion<T>& q) : v(q.v), w(q.w) {}; in Quaternion() function 970 Quaternion (const Vec3d& vec, T _w) : v(vec), w(_w) {}; in Quaternion() function 971 Quaternion (const Vec4d& vec) : v(vec[0], vec[1], vec[2]), w(vec[3]) {}; in Quaternion() function 972 Quaternion (T _x, T _y, T _z, T _w) : v(_x, _y, _z), w(_w) {}; in Quaternion() function 979 inline Quaternion<T>& operator = (const Quaternion<T>& rhs) { 985 inline Quaternion<T> operator + (const Quaternion<T>& rhs) const { 986 const Quaternion<T>& lhs = *this; 987 return Quaternion<T>(lhs.v + rhs.v, lhs.w + rhs.w); [all …]
|