41 #include <visp3/core/vpRzyzVector.h>
105 if ((fabs(R[1][2]) < 1e-6) &&(fabs(R[0][2]) < 1e-6))
108 phi = atan2(R[1][2],R[0][2]) ;
109 double cphi = cos(phi) ;
110 double sphi = sin(phi) ;
112 double theta = atan2(cphi*R[0][2]+sphi*R[1][2],R[2][2]);
114 double psi = atan2(-sphi*R[0][0]+cphi*R[1][0],-sphi*R[0][1]+cphi*R[1][1]) ;
160 for (
unsigned int i=0; i<
dsize; i++)
Implementation of a generic rotation vector.
vpRzyzVector buildFrom(const vpRotationMatrix &R)
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)
unsigned int dsize
Current array size (rowNum * colNum)
Implementation of a rotation vector as Euler angle minimal representation.
Implementation of a rotation vector as axis-angle minimal representation.
vpRzyzVector & operator=(double x)