43 #include <visp3/core/vpTranslationVector.h> 117 "Cannot construct a translation vector from a " 118 "%d-dimension column vector",
170 "Cannot build a translation vector from a %d-dimension column vector", v.
size()));
228 for (
unsigned int i = 0; i < 3; i++)
229 s[i] = (*
this)[i] + tv[i];
262 for (
unsigned int i = 0; i < 3; i++)
263 s[i] = (*
this)[i] + v[i];
290 for (
unsigned int i = 0; i < 3; i++)
291 sub[i] = (*
this)[i] - tv[i];
313 for (
unsigned int i = 0; i <
dsize; i++) {
339 for (
unsigned int i = 0; i <
dsize; i++) {
358 for (
unsigned int i = 0; i <
rowNum; i++) {
359 for (
unsigned int j = 0; j < v.
getCols(); j++) {
360 M[i][j] = (*this)[i] * v[j];
376 for (
unsigned int i = 0; i <
rowNum; i++)
390 for (
unsigned int i = 0; i <
rowNum; i++)
414 for (
unsigned int i = 0; i <
dsize; i++) {
439 if (tv.
size() != 3) {
441 "Cannot initialize a translation vector from a " 442 "%d-dimension col vector",
445 unsigned int k = tv.
size();
473 unsigned int k = tv.
rowNum;
502 for (
int i = 0; i < 3; i++)
624 for (
unsigned int i = 0; i <
dsize; i++) {
625 double x = *(
data + i);
640 double sum_square = 0.0;
642 for (
unsigned int i = 0; i <
rowNum; i++) {
Implementation of a matrix and operations on matrices.
vpTranslationVector operator+(const vpTranslationVector &tv) const
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.
void resize(const unsigned int nrows, const unsigned int ncols, const bool flagNullify=true, const bool recopy_=true)
vpTranslationVector operator/(const double x) const
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.
void extract(vpRotationMatrix &R) const
unsigned int getCols() const
unsigned int rowNum
Number of rows in the array.
void resize(const unsigned int nrows, const unsigned int ncols, const bool flagNullify=true)
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.
unsigned int dsize
Current array size (rowNum * colNum)
vpMatrix operator*(const vpRowVector &v) const
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)
double euclideanNorm() const