44 #include <visp/vpTranslationVector.h>
49 #include <visp/vpException.h>
50 #include <visp/vpMatrixException.h>
53 #include <visp/vpDebug.h>
60 void vpTranslationVector::init()
136 for (
unsigned int i=0;i<3;i++) sum[i] = (*
this)[i]+t[i] ;
163 for (
unsigned int i=0;i<3;i++) sub[i] = (*
this)[i]-t[i] ;
186 for (
unsigned int i=0;i<
dsize;i++)
212 for (
unsigned int i=0;i<
dsize;i++)
236 unsigned int k = t.
rowNum ;
269 for (
int i=0;i<3;i++)
299 M[0][0] = 0 ; M[0][1] = -t[2] ; M[0][2] = t[1] ;
300 M[1][0] = t[2] ; M[1][1] = 0 ; M[1][2] = -t[0] ;
301 M[2][0] = -t[1] ; M[2][1] = t[0] ; M[2][2] = 0 ;
Definition of the vpMatrix class.
void resize(const unsigned int nrows, const unsigned int ncols, const bool nullify=true)
static vpTranslationVector cross(const vpTranslationVector &a, const vpTranslationVector &b)
error that can be emited by ViSP classes.
vpTranslationVector operator-() const
double * data
address of the first element of the data array
vpTranslationVector operator+(const vpTranslationVector &t) const
vpRowVector t() const
transpose of Vector
vpTranslationVector operator*(const double x) const
vpTranslationVector & operator=(const vpTranslationVector &t)
unsigned int rowNum
number of rows
Class that provides a data structure for the column vectors as well as a set of operations on these v...
unsigned int dsize
Current size (rowNum * colNum)
void set(const double tx, const double ty, const double tz)
Class that consider the case of a translation vector.
void resize(const unsigned int i, const bool flagNullify=true)