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++)
508 #if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11) 528 if (list.size() >
size()) {
531 std::copy(list.begin(), list.end(),
data);
740 double sum_square = 0.0;
742 for (
unsigned int i = 0; i <
rowNum; i++) {
761 for (
size_t i = 0; i < vec_M.size(); i++) {
762 meanT += (
vpColVector) vec_M[i].getTranslationVector();
764 meanT /=
static_cast<double>(vec_M.size());
781 for (
size_t i = 0; i < vec_t.size(); i++) {
784 meanT /=
static_cast<double>(vec_t.size());
Implementation of a matrix and operations on matrices.
void resize(unsigned int nrows, unsigned int ncols, bool flagNullify=true, bool recopy_=true)
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.
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 base class for matrices and vectors. ...
unsigned int size() const
Return the number of elements of the 2D array.
vpTranslationVector operator/(double x) const
void extract(vpRotationMatrix &R) const
void resize(unsigned int nrows, unsigned int ncols, bool flagNullify=true)
vpTranslationVector & operator,(double val)
unsigned int getCols() const
unsigned int rowNum
Number of rows in the array.
double frobeniusNorm() 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.
vpTranslationVector buildFrom(double tx, double ty, double tz)
void set(double tx, double ty, double tz)
vpTranslationVector & operator<<(double val)
unsigned int dsize
Current array size (rowNum * colNum)
vpMatrix operator*(const vpRowVector &v) const
Class that consider the case of a translation vector.
double ** rowPtrs
Address of the first element of each rows.
vp_deprecated double euclideanNorm() const