|
ViSP
|
#include <vpRotationVector.h>
Inheritance diagram for vpRotationVector:Public Member Functions | |
| vpRotationVector () | |
| vpRotationVector (const unsigned int n) | |
| ~vpRotationVector () | |
| double & | operator[] (unsigned int n) |
| const double & | operator[] (unsigned int n) const |
| 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 95 of file vpRotationVector.h.
|
inline |
Constructor that constructs a vector of size 3 initialize three vector values to zero.
Definition at line 104 of file vpRotationVector.h.
References vpMatrix::init().
|
inline |
Constructor that constructs a vector of size n initialize three vector values to zero.
Definition at line 110 of file vpRotationVector.h.
References vpMatrix::init().
| vpRotationVector::~vpRotationVector | ( | ) |
Definition at line 119 of file vpRotationVector.cpp.
References r.
|
protected |
Definition at line 113 of file vpRotationVector.cpp.
|
inline |
Operator that allows to set the value of an element of the rotation vector: r[i] = value
Definition at line 120 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 125 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 init(), vpQuaternionVector::operator=(), and vpQuaternionVector::vpQuaternionVector().
Here is the caller graph for this function:| 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 97 of file vpRotationVector.h.
|
protected |
Definition at line 100 of file vpRotationVector.h.
Referenced by init(), size(), t(), and vpColVector::vpColVector().
|
protected |
Definition at line 99 of file vpRotationVector.h.
Referenced by vpThetaUVector::buildFrom(), vpRzyzVector::buildFrom(), vpRzyxVector::buildFrom(), vpRxyzVector::buildFrom(), vpThetaUVector::extract(), init(), vpQuaternionVector::operator=(), vpRzyzVector::operator=(), vpRzyxVector::operator=(), vpRxyzVector::operator=(), vpThetaUVector::operator=(), vpQuaternionVector::set(), t(), vpColVector::vpColVector(), vpQuaternionVector::vpQuaternionVector(), vpRxyzVector::vpRxyzVector(), vpRzyxVector::vpRzyxVector(), vpRzyzVector::vpRzyzVector(), and ~vpRotationVector().