44 #ifndef __QUATERNIONVECTOR_H__ 45 #define __QUATERNIONVECTOR_H__ 55 #include <visp/vpConfig.h> 57 #if VISP_VERSION_INT <= (2<<16 | 6<<8 | 1) 59 #include <visp/vpRotationMatrix.h> 60 #include <visp/vpColVector.h> 92 void buildFrom(
const vpRotationMatrix& R);
94 void set(
const double x,
const double y,
const double z,
const double w) ;
95 unsigned int size(){
return 4;}
97 inline double x()
const {
return r[0];}
99 inline double y()
const {
return r[1];}
101 inline double z()
const {
return r[2];}
103 inline double w()
const {
return r[3];}
static const double minimum
double y() const
returns y-component of the quaternion
double w() const
returns w-component of the quaternion
double z() const
returns z-component of the quaternion
double x() const
returns x-component of the quaternion
Defines a quaternion and its basic operations.