38 #include <visp3/core/vpRzyzVector.h>
90 if ((fabs(R[1][2]) < 1e-6) && (fabs(R[0][2]) < 1e-6))
93 phi = atan2(R[1][2], R[0][2]);
94 double cphi = cos(phi);
95 double sphi = sin(phi);
97 double theta = atan2(cphi * R[0][2] + sphi * R[1][2], R[2][2]);
99 double psi = atan2(-sphi * R[0][0] + cphi * R[1][0], -sphi * R[0][1] + cphi * R[1][1]);
126 if (rzyz.
size() != 3) {
130 for (
unsigned int i = 0; i < 3; i++)
141 if (rzyz.size() != 3) {
145 for (
unsigned int i = 0; i < 3; i++)
172 for (
unsigned int i = 0; i <
dsize; i++)
216 if (rzyz.
size() != 3) {
220 for (
unsigned int i = 0; i < 3; i++)
226 #if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
246 if (list.size() >
size()) {
249 "Cannot set Euler x-y-z vector out of bounds. It has only %d values while you try to initialize with %d values",
250 size(), list.size()));
252 std::copy(list.begin(), list.end(),
data);
double * data
Address of the first element of the data array.
unsigned int dsize
Current array size (rowNum * colNum)
unsigned int size() const
Return the number of elements of the 2D array.
Implementation of column vector and the associated operations.
error that can be emitted by ViSP classes.
@ dimensionError
Bad dimension.
Implementation of a rotation matrix and operations on such kind of matrices.
vpRotationMatrix buildFrom(const vpHomogeneousMatrix &M)
Implementation of a generic rotation vector.
Implementation of a rotation vector as Euler angle minimal representation.
vpRzyzVector buildFrom(const vpRotationMatrix &R)
vpRzyzVector & operator=(const vpColVector &rzyz)
Implementation of a rotation vector as axis-angle minimal representation.