QNANO
Public Member Functions | Friends | List of all members
Quaternion Class Reference

Public Member Functions

double & operator[] (size_t i)
 
const double & operator[] (size_t i) const
 
Vec3d rotate (const Vec3d &v) const
 
void set (double ur=1, double ux=0, double uy=0, double uz=0)
 
double norm2 () const
 
double norm () const
 
std::vector< std::vector< double > > RotMat () const
 
 Quaternion (double ur=1, double ux=0, double uy=0, double uz=0)
 
 Quaternion (const std::vector< double > &dvec)
 

Friends

Quaternion operator* (const Quaternion &q1, const Quaternion &q2)
 
Quaternion conj (const Quaternion &q)
 

The documentation for this class was generated from the following files: