43 #include <visp3/core/vpTranslationVector.h>
196 for (
unsigned int i=0;i<3;i++) s[i] = (*
this)[i]+tv[i] ;
223 for (
unsigned int i=0;i<3;i++) sub[i] = (*
this)[i]-tv[i] ;
246 for (
unsigned int i=0;i<
dsize;i++)
272 for (
unsigned int i=0;i<
dsize;i++) {
273 *(tv.
data + i) = (*(
data + i)) * x ;
291 for (
unsigned int i=0; i<
rowNum; i++) {
292 for (
unsigned int j=0; j<v.
getCols(); j++) {
293 M[i][j] = (*this)[i] * v[j];
308 for (
unsigned int i=0;i<
rowNum;i++)
321 for (
unsigned int i=0;i<
rowNum;i++)
344 for (
unsigned int i=0;i<
dsize;i++) {
345 *(tv.
data + i) = (*(
data + i)) / x ;
366 unsigned int k = tv.
rowNum ;
397 for (
int i=0;i<3;i++)
424 M[0][0] = 0 ; M[0][1] = -tv[2] ; M[0][2] = tv[1] ;
425 M[1][0] = tv[2] ; M[1][1] = 0 ; M[1][2] = -tv[0] ;
426 M[2][0] = -tv[1]; M[2][1] = tv[0] ; M[2][2] = 0 ;
520 for (
unsigned int i=0;i<
dsize;i++) {
521 x = *(
data +i); norm += x*x;
534 double sum_square=0.0;
537 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.
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 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/=(double x)
Implementation of a pose vector and operations on poses.
vpMatrix operator*(const vpRowVector &v) const
vpTranslationVector & operator=(const vpTranslationVector &tv)
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