ViSP
2.10.0
|
#include <vpRotationVector.h>
Public Member Functions | |
vpRotationVector () | |
vpRotationVector (const unsigned int n) | |
vpRotationVector (const vpRotationVector &v) | |
virtual | ~vpRotationVector () |
double & | operator[] (unsigned int n) |
const double & | operator[] (unsigned int n) const |
vpRotationVector & | operator= (const vpRotationVector &v) |
unsigned int | size () const |
vpRowVector | t () const |
Protected Member Functions | |
void | init (const unsigned int size) |
Protected Attributes | |
double * | r |
unsigned int | _size |
Friends | |
class | vpColVector |
VISP_EXPORT std::ostream & | operator<< (std::ostream &s, const vpRotationVector &m) |
Class that consider the case of a generic rotation vector (cannot be used as is !) consisting in three angles.
The code below shows how this class can be used to manipulate a vpRxyzVector.
Definition at line 94 of file vpRotationVector.h.
|
inline |
Constructor that constructs a vector of size 3 and initialize all values to zero.
Definition at line 103 of file vpRotationVector.h.
References vpMatrix::init().
|
inline |
Constructor that constructs a vector of size n and initialize all values to zero.
Definition at line 110 of file vpRotationVector.h.
References vpMatrix::init().
|
inline |
Copy operator.
Definition at line 118 of file vpRotationVector.h.
|
virtual |
Definition at line 123 of file vpRotationVector.cpp.
References r.
|
protected |
Definition at line 117 of file vpRotationVector.cpp.
|
inline |
Affectation of two vectors.
Definition at line 140 of file vpRotationVector.h.
References vpMatrix::init(), r, and size().
|
inline |
Operator that allows to set the value of an element of the rotation vector: r[i] = value
Definition at line 130 of file vpRotationVector.h.
|
inline |
Operator that allows to get the value of an element of the rotation vector: value = r[i]
Definition at line 135 of file vpRotationVector.h.
unsigned int vpRotationVector::size | ( | ) | const |
Returns the size of the rotation vector
Size of the rotation vector: number of double values describing the rotation. Common sizes are 4 for a quaternion and 3 for angle-based rotation vectors.
Definition at line 71 of file vpRotationVector.cpp.
References _size.
Referenced by operator=().
vpRowVector vpRotationVector::t | ( | ) | const |
Return the transpose of the rotation vector.
Definition at line 57 of file vpRotationVector.cpp.
|
friend |
Print the values of the three angles on the output stream. Data are formatted as a column vector.
will lead to the following printing on the standart stream:
Definition at line 100 of file vpRotationVector.cpp.
|
friend |
Definition at line 96 of file vpRotationVector.h.
|
protected |
Definition at line 99 of file vpRotationVector.h.
Referenced by init(), size(), t(), and vpColVector::vpColVector().
|
protected |
Definition at line 98 of file vpRotationVector.h.
Referenced by vpThetaUVector::buildFrom(), vpRzyzVector::buildFrom(), vpRzyxVector::buildFrom(), vpRxyzVector::buildFrom(), vpThetaUVector::extract(), init(), operator=(), vpThetaUVector::operator=(), vpRzyzVector::operator=(), vpQuaternionVector::set(), t(), vpColVector::vpColVector(), vpRxyzVector::vpRxyzVector(), vpRzyxVector::vpRzyxVector(), vpRzyzVector::vpRzyzVector(), and ~vpRotationVector().