43 #include <visp3/core/vpTranslationVector.h>
125 "Cannot construct a translation vector from a %d-dimension column vector", v.
size()));
179 "Cannot build a translation vector from a %d-dimension column vector", v.
size()));
239 for (
unsigned int i=0;i<3;i++) s[i] = (*
this)[i]+tv[i] ;
266 "Cannot add translation vector to a %d-dimension column vector", v.
size()));
270 for (
unsigned int i=0;i<3;i++) s[i] = (*
this)[i]+v[i] ;
297 for (
unsigned int i=0;i<3;i++) sub[i] = (*
this)[i]-tv[i] ;
320 for (
unsigned int i=0;i<
dsize;i++)
346 for (
unsigned int i=0;i<
dsize;i++) {
347 *(tv.
data + i) = (*(
data + i)) * x ;
365 for (
unsigned int i=0; i<
rowNum; i++) {
366 for (
unsigned int j=0; j<v.
getCols(); j++) {
367 M[i][j] = (*this)[i] * v[j];
382 for (
unsigned int i=0;i<
rowNum;i++)
395 for (
unsigned int i=0;i<
rowNum;i++)
418 for (
unsigned int i=0;i<
dsize;i++) {
419 *(tv.
data + i) = (*(
data + i)) / x ;
443 if (tv.
size() != 3) {
446 unsigned int k = tv.
size() ;
476 unsigned int k = tv.
rowNum ;
507 for (
int i=0;i<3;i++)
534 M[0][0] = 0 ; M[0][1] = -tv[2] ; M[0][2] = tv[1] ;
535 M[1][0] = tv[2] ; M[1][1] = 0 ; M[1][2] = -tv[0] ;
536 M[2][0] = -tv[1]; M[2][1] = tv[0] ; M[2][2] = 0 ;
629 for (
unsigned int i=0;i<
dsize;i++) {
630 double x = *(
data +i);
644 double sum_square=0.0;
646 for (
unsigned int i=0;i<
rowNum;i++) {
Implementation of a matrix and operations on matrices.
void resize(const unsigned int nrows, const unsigned int ncols, const bool flagNullify=true)
vpTranslationVector & operator*=(double x)
static vpTranslationVector cross(const vpTranslationVector &a, const vpTranslationVector &b)
Implementation of an homogeneous matrix and operations on such kind of matrices.
Implementation of row vector and the associated operations.
error that can be emited by ViSP classes.
vpTranslationVector operator-() const
Type * data
Address of the first element of the data array.
Implementation of a generic 2D array used as vase class of matrices and vectors.
unsigned int size() const
Return the number of elements of the 2D array.
unsigned int getCols() const
Return the number of columns of the 2D array.
unsigned int rowNum
Number of rows in the array.
vpTranslationVector operator/(const double x) const
double euclideanNorm() const
void resize(const unsigned int nrows, const unsigned int ncols, const bool flagNullify=true)
void extract(vpRotationMatrix &R) const
vpTranslationVector & operator=(const vpColVector &tv)
vpTranslationVector & operator/=(double x)
Implementation of column vector and the associated operations.
Implementation of a pose vector and operations on poses.
vpMatrix operator*(const vpRowVector &v) const
unsigned int dsize
Current array size (rowNum * colNum)
void set(const double tx, const double ty, const double tz)
Class that consider the case of a translation vector.
double ** rowPtrs
Address of the first element of each rows.
vpTranslationVector buildFrom(const double tx, const double ty, const double tz)
vpTranslationVector operator+(const vpTranslationVector &tv) const