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++) {
661 for (
size_t i = 0; i < vec_M.size(); i++) {
662 meanT += (
vpColVector) vec_M[i].getTranslationVector();
664 meanT /=
static_cast<double>(vec_M.size());
681 for (
size_t i = 0; i < vec_t.size(); i++) {
684 meanT /=
static_cast<double>(vec_t.size());
Implementation of a matrix and operations on matrices.
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)
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
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
static vpTranslationVector mean(const std::vector< vpHomogeneousMatrix > &vec_M)
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