|
KDL 1.5.3
|
#include <src/frames.hpp>
Public Member Functions | |
| Vector2 () | |
| Does not initialise to Zero(). | |
| Vector2 (double x, double y) | |
| Vector2 (const Vector2 &arg) | |
| Vector2 & | operator= (const Vector2 &arg) |
| double | operator() (int index) const |
| Access to elements, range checked when NDEBUG is not set, from 0..1. | |
| double & | operator() (int index) |
| Access to elements, range checked when NDEBUG is not set, from 0..1. | |
| double | operator[] (int index) const |
| Equivalent to double operator()(int index) const. | |
| double & | operator[] (int index) |
| Equivalent to double& operator()(int index). | |
| double | x () const |
| double | y () const |
| void | x (double) |
| void | y (double) |
| void | ReverseSign () |
| Vector2 & | operator-= (const Vector2 &arg) |
| Vector2 & | operator+= (const Vector2 &arg) |
| double | Normalize (double eps=epsilon) |
| Normalizes this vector and returns it norm makes v a unitvector and returns the norm of v. | |
| double | Norm (double eps=epsilon) const |
| void | Set3DXY (const Vector &v) |
| projects v in its XY plane, and sets *this to these values | |
| void | Set3DYZ (const Vector &v) |
| projects v in its YZ plane, and sets *this to these values | |
| void | Set3DZX (const Vector &v) |
| projects v in its ZX plane, and sets *this to these values | |
| void | Set3DPlane (const Frame &F_someframe_XY, const Vector &v_someframe) |
| projects v_someframe in the XY plane of F_someframe_XY, and sets *this to these values expressed wrt someframe. | |
Static Public Member Functions | |
| static Vector2 | Zero () |
Private Attributes | |
| double | data [2] |
Friends | |
| class | Rotation2 |
| Vector2 | operator* (const Vector2 &lhs, double rhs) |
| Vector2 | operator* (double lhs, const Vector2 &rhs) |
| Vector2 | operator/ (const Vector2 &lhs, double 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) |
| void | SetToZero (Vector2 &v) |
| bool | Equal (const Vector2 &a, const Vector2 &b, double eps=epsilon) |
| do not use operator == because the definition of Equal(.,.) is slightly different. It compares whether the 2 arguments are equal in an eps-interval | |
| bool | operator== (const Vector2 &a, const Vector2 &b) |
| The literal equality operator==(), also identical. | |
| bool | operator!= (const Vector2 &a, const Vector2 &b) |
| The literal inequality operator!=(). | |
2D version of Vector
|
inline |
Does not initialise to Zero().
References data.
Referenced by KDL::Frame2::Inverse(), Normalize(), and operator*.
|
inline |
|
inline |
| double KDL::Vector2::Norm | ( | double | eps = epsilon | ) | const |
| double KDL::Vector2::Normalize | ( | double | eps = epsilon | ) |
|
inline |
Access to elements, range checked when NDEBUG is not set, from 0..1.
|
inline |
Access to elements, range checked when NDEBUG is not set, from 0..1.
Referenced by KDL::Frame2::operator()(), and operator[]().
|
inline |
Equivalent to double& operator()(int index).
References operator()().
|
inline |
Equivalent to double operator()(int index) const.
|
inline |
|
inline |
projects v_someframe in the XY plane of F_someframe_XY, and sets *this to these values expressed wrt someframe.
|
inline |
projects v in its XY plane, and sets *this to these values
|
inline |
projects v in its YZ plane, and sets *this to these values
|
inline |
projects v in its ZX plane, and sets *this to these values
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
do not use operator == because the definition of Equal(.,.) is slightly different. It compares whether the 2 arguments are equal in an eps-interval
The literal inequality operator!=().
The literal equality operator==(), also identical.
|
friend |
Referenced by SetToZero.