40 #ifndef VP_ROTATION_VECTOR_H
41 #define VP_ROTATION_VECTOR_H
47 #include <visp3/core/vpConfig.h>
48 #include <visp3/core/vpArray2D.h>
124 inline double &
operator[](
unsigned int i) {
return *(data + i); }
129 inline const double &
operator[](
unsigned int i)
const {
return *(data + i); }
137 unsigned int v_size = v.
size();
138 for (
unsigned int i = 0; i < v_size; ++i) {
149 double sumSquare()
const;
154 std::vector<double> toStdVector()
const;
162 #ifndef DOXYGEN_SHOULD_SKIP_THIS
Implementation of a generic 2D array used as base class for matrices and vectors.
Type * data
Address of the first element of the data array.
void resize(unsigned int nrows, unsigned int ncols, bool flagNullify=true, bool recopy_=true)
friend std::ostream & operator<<(std::ostream &s, const vpArray2D< Type > &A)
unsigned int size() const
Return the number of elements of the 2D array.
vpArray2D< Type > t() const
Compute the transpose of the array.
Implementation of column vector and the associated operations.
vpColVector operator*(const double &x, const vpColVector &v)
Implementation of a generic rotation vector.
vpRotationVector(const vpRotationVector &v)
vpRotationVector & operator=(const vpRotationVector &v)
double & operator[](unsigned int i)
const double & operator[](unsigned int i) const
vpRotationVector()
Constructor that constructs a 0-size rotation vector.
VP_EXPLICIT vpRotationVector(unsigned int n)
Implementation of row vector and the associated operations.
vpMatrix operator*(const double &x, const vpMatrix &A)