#include <frames.hpp>
Public Member Functions | |
double | Norm (double eps=epsilon) const |
double | Normalize (double eps=epsilon) |
double | operator() (int index) const |
Access to elements, range checked when NDEBUG is not set, from 0..1. More... | |
double & | operator() (int index) |
Access to elements, range checked when NDEBUG is not set, from 0..1. More... | |
Vector2 & | operator+= (const Vector2 &arg) |
Vector2 & | operator-= (const Vector2 &arg) |
Vector2 & | operator= (const Vector2 &arg) |
double | operator[] (int index) const |
Equivalent to double operator()(int index) const. More... | |
double & | operator[] (int index) |
Equivalent to double& operator()(int index) More... | |
void | ReverseSign () |
void | Set3DPlane (const Frame &F_someframe_XY, const Vector &v_someframe) |
void | Set3DXY (const Vector &v) |
projects v in its XY plane, and sets *this to these values More... | |
void | Set3DYZ (const Vector &v) |
projects v in its YZ plane, and sets *this to these values More... | |
void | Set3DZX (const Vector &v) |
projects v in its ZX plane, and sets *this to these values More... | |
Vector2 () | |
Does not initialise to Zero(). More... | |
Vector2 (double x, double y) | |
Vector2 (const Vector2 &arg) | |
double | x () const |
void | x (double) |
double | y () const |
void | y (double) |
Static Public Member Functions | |
static Vector2 | Zero () |
Private Attributes | |
double | data [2] |
Friends | |
bool | Equal (const Vector2 &a, const Vector2 &b, double eps) |
bool | operator!= (const Vector2 &a, const Vector2 &b) |
The literal inequality operator!=(). More... | |
Vector2 | operator* (const Vector2 &lhs, double rhs) |
Vector2 | operator* (double lhs, const Vector2 &rhs) |
Vector2 | operator* (const Vector2 &lhs, const Vector2 &rhs) |
Vector2 | operator+ (const Vector2 &lhs, const Vector2 &rhs) |
Vector2 | operator- (const Vector2 &lhs, const Vector2 &rhs) |
Vector2 | operator- (const Vector2 &arg) |
Vector2 | operator/ (const Vector2 &lhs, double rhs) |
bool | operator== (const Vector2 &a, const Vector2 &b) |
The literal equality operator==(), also identical. More... | |
class | Rotation2 |
void | SetToZero (Vector2 &v) |
2D version of Vector
Definition at line 959 of file frames.hpp.
|
inline |
Does not initialise to Zero().
Definition at line 964 of file frames.hpp.
|
inline |
Definition at line 732 of file frames.hpp.
Definition at line 726 of file frames.hpp.
double KDL::Vector2::Norm | ( | double | eps = epsilon | ) | const |
Definition at line 87 of file frames.cpp.
double KDL::Vector2::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 104 of file frames.cpp.
|
inline |
Access to elements, range checked when NDEBUG is not set, from 0..1.
Definition at line 789 of file frames.hpp.
|
inline |
Access to elements, range checked when NDEBUG is not set, from 0..1.
Definition at line 794 of file frames.hpp.
Definition at line 771 of file frames.hpp.
Definition at line 778 of file frames.hpp.
Definition at line 738 of file frames.hpp.
|
inline |
Equivalent to double operator()(int index) const.
Definition at line 977 of file frames.hpp.
|
inline |
Equivalent to double& operator()(int index)
Definition at line 983 of file frames.hpp.
|
inline |
Definition at line 807 of file frames.hpp.
|
inline |
projects v_someframe in the XY plane of F_someframe_XY, and sets *this to these values expressed wrt someframe.
Definition at line 839 of file frames.hpp.
projects v in its XY plane, and sets *this to these values
Definition at line 820 of file frames.hpp.
projects v in its YZ plane, and sets *this to these values
Definition at line 826 of file frames.hpp.
projects v in its ZX plane, and sets *this to these values
Definition at line 832 of file frames.hpp.
|
inline |
Definition at line 800 of file frames.hpp.
|
inline |
Definition at line 803 of file frames.hpp.
|
inline |
Definition at line 801 of file frames.hpp.
|
inline |
Definition at line 804 of file frames.hpp.
Definition at line 785 of file frames.hpp.
do not use operator == because the definition of Equal(.,.) is slightly different. It compares whether the 2 arguments are equal in an eps-interval
Definition at line 1055 of file frames.hpp.
The literal inequality operator!=().
Definition at line 1341 of file frames.hpp.
Definition at line 756 of file frames.hpp.
Definition at line 761 of file frames.hpp.
Definition at line 746 of file frames.hpp.
Definition at line 751 of file frames.hpp.
Definition at line 814 of file frames.hpp.
Definition at line 766 of file frames.hpp.
The literal equality operator==(), also identical.
Definition at line 1332 of file frames.hpp.
|
friend |
Definition at line 1044 of file frames.hpp.
|
friend |
Definition at line 1081 of file frames.hpp.
|
private |
Definition at line 961 of file frames.hpp.