orocos_kdl
|
A concrete implementation of a 3 dimensional vector class. More...
#include <frames.hpp>
Public Member Functions | |
double | Norm (double eps=epsilon) const |
double | Normalize (double eps=epsilon) |
double & | operator() (int index) |
Access to elements, range checked when NDEBUG is not set, from 0..2. More... | |
double | operator() (int index) const |
Access to elements, range checked when NDEBUG is not set, from 0..2. More... | |
Vector & | operator+= (const Vector &arg) |
Adds a vector from the Vector object itself. More... | |
Vector & | operator-= (const Vector &arg) |
subtracts a vector from the Vector object itself More... | |
Vector & | operator= (const Vector &arg) |
Assignment operator. The normal copy by value semantics. More... | |
double & | operator[] (int index) |
Equivalent to double& operator()(int index) More... | |
double | operator[] (int index) const |
Equivalent to double operator()(int index) const. More... | |
void | ReverseSign () |
Reverses the sign of the Vector object itself. More... | |
void | Set2DPlane (const Frame &F_someframe_XY, const Vector2 &v_XY) |
a 3D vector where the 2D vector v_XY is put in the XY plane of the frame F_someframe_XY. More... | |
void | Set2DXY (const Vector2 &v) |
a 3D vector where the 2D vector v is put in the XY plane More... | |
void | Set2DYZ (const Vector2 &v) |
a 3D vector where the 2D vector v is put in the YZ plane More... | |
void | Set2DZX (const Vector2 &v) |
a 3D vector where the 2D vector v is put in the ZX plane More... | |
Vector () | |
Does not initialise the Vector to zero. use Vector::Zero() or SetToZero for that. More... | |
Vector (const Vector &arg) | |
Assignment operator. The normal copy by value semantics. More... | |
Vector (double x, double y, double z) | |
Constructs a vector out of the three values x, y and z. More... | |
double | x () const |
void | x (double) |
double | y () const |
void | y (double) |
double | z () const |
void | z (double) |
Static Public Member Functions | |
static Vector | Zero () |
Public Attributes | |
double | data [3] |
Friends | |
double | dot (const Vector &lhs, const Vector &rhs) |
bool | Equal (const Vector &a, const Vector &b, double eps) |
class | Frame |
bool | operator!= (const Vector &a, const Vector &b) |
The literal inequality operator!=(). More... | |
Vector | operator* (const Vector &lhs, const Vector &rhs) |
Vector | operator* (const Vector &lhs, double rhs) |
Scalar multiplication is defined. More... | |
Vector | operator* (double lhs, const Vector &rhs) |
Scalar multiplication is defined. More... | |
Vector | operator+ (const Vector &lhs, const Vector &rhs) |
Vector | operator- (const Vector &arg) |
Vector | operator- (const Vector &lhs, const Vector &rhs) |
Vector | operator/ (const Vector &lhs, double rhs) |
Scalar division is defined. More... | |
bool | operator== (const Vector &a, const Vector &b) |
The literal equality operator==(), also identical. More... | |
class | Rotation |
void | SetToZero (Vector &v) |
A concrete implementation of a 3 dimensional vector class.
Definition at line 162 of file frames.hpp.
|
inline |
Does not initialise the Vector to zero. use Vector::Zero() or SetToZero for that.
Definition at line 167 of file frames.hpp.
|
inline |
Constructs a vector out of the three values x, y and z.
Definition at line 43 of file frames.inl.
Assignment operator. The normal copy by value semantics.
Definition at line 36 of file frames.inl.
double KDL::Vector::Norm | ( | double | eps = epsilon | ) | const |
Definition at line 142 of file frames.cpp.
double KDL::Vector::Normalize | ( | double | eps = epsilon | ) |
Normalizes this vector and returns it norm makes v a unitvector and returns the norm of v. if v is smaller than eps, Vector(1,0,0) is returned with norm 0. if this is not good, check the return value of this method.
Definition at line 172 of file frames.cpp.
|
inline |
Access to elements, range checked when NDEBUG is not set, from 0..2.
Definition at line 148 of file frames.inl.
|
inline |
Access to elements, range checked when NDEBUG is not set, from 0..2.
Definition at line 143 of file frames.inl.
Adds a vector from the Vector object itself.
Definition at line 120 of file frames.inl.
subtracts a vector from the Vector object itself
Definition at line 129 of file frames.inl.
Assignment operator. The normal copy by value semantics.
Definition at line 49 of file frames.inl.
|
inline |
Equivalent to double& operator()(int index)
Definition at line 191 of file frames.hpp.
|
inline |
Equivalent to double operator()(int index) const.
Definition at line 185 of file frames.hpp.
|
inline |
Reverses the sign of the Vector object itself.
Definition at line 440 of file frames.inl.
a 3D vector where the 2D vector v_XY is put in the XY plane of the frame F_someframe_XY.
Definition at line 707 of file frames.inl.
|
inline |
a 3D vector where the 2D vector v is put in the XY plane
Definition at line 458 of file frames.inl.
|
inline |
a 3D vector where the 2D vector v is put in the YZ plane
Definition at line 466 of file frames.inl.
|
inline |
a 3D vector where the 2D vector v is put in the ZX plane
Definition at line 475 of file frames.inl.
|
inline |
Definition at line 75 of file frames.inl.
|
inline |
|
inline |
Definition at line 76 of file frames.inl.
|
inline |
|
inline |
Definition at line 77 of file frames.inl.
|
inline |
|
inlinestatic |
Definition at line 138 of file frames.inl.
do not use operator == because the definition of Equal(.,.) is slightly different. It compares whether the 2 arguments are equal in an eps-interval
|
friend |
Definition at line 266 of file frames.hpp.
The literal inequality operator!=().
The literal equality operator==(), also identical.
|
friend |
Definition at line 265 of file frames.hpp.
|
friend |
To have a uniform operator to put an element to zero, for scalar values and for objects.
double KDL::Vector::data[3] |
Definition at line 165 of file frames.hpp.