34 #ifndef _vpRotationVector_h_
35 #define _vpRotationVector_h_
47 #include <visp3/core/vpArray2D.h>
122 inline double &
operator[](
unsigned int i) {
return *(data + i); }
127 inline const double &
operator[](
unsigned int i)
const {
return *(data + i); }
135 for (
unsigned int i = 0; i < v.
size(); i++) {
146 double sumSquare()
const;
151 std::vector<double> toStdVector()
const;
159 #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.
VISP_EXPORT vpImagePoint operator*(const vpImagePoint &ip1, double scale)
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.
virtual ~vpRotationVector()
vpRotationVector(unsigned int n)
Implementation of row vector and the associated operations.
vpColVector operator*(const double &x, const vpColVector &v)