42 #include <visp3/core/vpRxyzVector.h>
105 double COEF_MIN_ROT = 1e-6;
108 if ((fabs(R[1][2]) < COEF_MIN_ROT) && (fabs(R[2][2]) < COEF_MIN_ROT)) phi = 0 ;
109 else phi = atan2(-R[1][2], R[2][2]) ;
111 double si = sin(phi) ;
112 double co = cos(phi) ;
113 double theta = atan2(R[0][2], -si*R[1][2] + co*R[2][2]) ;
114 double psi = atan2(co*R[1][0] + si*R[2][0], co*R[1][1] + si*R[2][1]);
173 for (
unsigned int i=0; i<
dsize; i++)
Implementation of a generic rotation vector.
vpRxyzVector buildFrom(const vpRotationMatrix &R)
vpRxyzVector & operator=(double x)
double * data
Address of the first element of the data array.
Implementation of a rotation matrix and operations on such kind of matrices.
vpRotationMatrix buildFrom(const vpHomogeneousMatrix &M)
Implementation of a rotation vector as Euler angle minimal representation.
unsigned int dsize
Current array size (rowNum * colNum)
Implementation of a rotation vector as axis-angle minimal representation.