45 #include <visp/vpRzyzVector.h>
87 if ((fabs(R[1][2]) < 1e-6) &&(fabs(R[0][2]) < 1e-6))
90 phi = atan2(R[1][2],R[0][2]) ;
91 double cphi = cos(phi) ;
92 double sphi = sin(phi) ;
94 double theta = atan2(cphi*R[0][2]+sphi*R[1][2],R[2][2]);
96 double psi = atan2(-sphi*R[0][0]+cphi*R[1][0],-sphi*R[0][1]+cphi*R[1][1]) ;
145 for (
int i=0; i< 3; i++)
The vpRotationMatrix considers the particular case of a rotation matrix.
vpRotationMatrix buildFrom(const vpThetaUVector &v)
Transform a vector vpThetaUVector into an rotation matrix.
Class that consider the case of the Euler angles using the z-y-z convention, where are respectively...
void buildFrom(const double phi, const double theta, const double psi)
Class that consider the case of the parameterization for the rotation.
vpRzyzVector & operator=(double x)