Lightweight 2D point. More...
#include <mrpt/math/lightweight_geom_data.h>
Public Member Functions | |
| TPoint2D (const TPose2D &p) | |
| Constructor from TPose2D, discarding phi. | |
| TPoint2D (const TPoint3D &p) | |
| Constructor from TPoint3D, discarding z. | |
| TPoint2D (const TPose3D &p) | |
| Constructor from TPose3D, discarding z and the angular coordinates. | |
| TPoint2D (const mrpt::poses::CPoseOrPoint &p) | |
| Constructor from CPoseOrPoint, losing information. | |
| TPoint2D (const mrpt::poses::CPoint2D &p) | |
| Implicit constructor from heavyweight type. | |
| TPoint2D (double xx, double yy) | |
| Constructor from coordinates. | |
| TPoint2D () | |
| Default fast constructor. | |
| double & | operator[] (size_t i) |
| Unsafe coordinate access using operator[]. | |
| const double & | operator[] (size_t i) const |
| Unsafe coordinate access using operator[]. | |
| void | getAsVector (vector_double &v) const |
| Transformation into vector. | |
| bool | operator< (const TPoint2D &p) const |
| TPoint2D & | operator+= (const TPoint2D &p) |
| TPoint2D & | operator-= (const TPoint2D &p) |
| TPoint2D & | operator*= (double d) |
| TPoint2D & | operator/= (double d) |
| TPoint2D | operator+ (const TPoint2D &p) const |
| TPoint2D | operator- (const TPoint2D &p) const |
| TPoint2D | operator* (double d) const |
| TPoint2D | operator/ (double d) const |
| void | asString (std::string &s) const |
| Returns a human-readable textual representation of the object (eg: "[0.02 1.04]" ). | |
| std::string | asString () const |
| void | fromString (const std::string &s) |
| Set the current object value from a string generated by 'asString' (eg: "[0.02 1.04]" ). | |
Static Public Member Functions | |
| static size_t | size () |
Public Attributes | |
| double | x |
| X coordinate. | |
| double | y |
| Y coordinate. | |
Lightweight 2D point.
Allows coordinate access using [] operator.
Definition at line 67 of file lightweight_geom_data.h.
| mrpt::math::TPoint2D::TPoint2D | ( | const TPose2D & | p | ) | [explicit] |
| mrpt::math::TPoint2D::TPoint2D | ( | const TPoint3D & | p | ) | [explicit] |
| mrpt::math::TPoint2D::TPoint2D | ( | const TPose3D & | p | ) | [explicit] |
| mrpt::math::TPoint2D::TPoint2D | ( | const mrpt::poses::CPoseOrPoint & | p | ) | [explicit] |
Constructor from CPoseOrPoint, losing information.
| mrpt::math::TPoint2D::TPoint2D | ( | const mrpt::poses::CPoint2D & | p | ) |
Implicit constructor from heavyweight type.
| mrpt::math::TPoint2D::TPoint2D | ( | double | xx, | |
| double | yy | |||
| ) | [inline] |
Constructor from coordinates.
Definition at line 104 of file lightweight_geom_data.h.
| mrpt::math::TPoint2D::TPoint2D | ( | ) | [inline] |
Default fast constructor.
Initializes to garbage.
Definition at line 108 of file lightweight_geom_data.h.
| std::string mrpt::math::TPoint2D::asString | ( | ) | const [inline] |
Definition at line 178 of file lightweight_geom_data.h.
References asString().
Referenced by asString().
| void mrpt::math::TPoint2D::asString | ( | std::string & | s | ) | const [inline] |
Returns a human-readable textual representation of the object (eg: "[0.02 1.04]" ).
Definition at line 177 of file lightweight_geom_data.h.
References mrpt::format().
| void mrpt::math::TPoint2D::fromString | ( | const std::string & | s | ) |
Set the current object value from a string generated by 'asString' (eg: "[0.02 1.04]" ).
| std::exception | On invalid format |
| void mrpt::math::TPoint2D::getAsVector | ( | vector_double & | v | ) | const [inline] |
Transformation into vector.
Definition at line 124 of file lightweight_geom_data.h.
| TPoint2D mrpt::math::TPoint2D::operator* | ( | double | d | ) | const [inline] |
Definition at line 165 of file lightweight_geom_data.h.
| TPoint2D& mrpt::math::TPoint2D::operator*= | ( | double | d | ) | [inline] |
Definition at line 143 of file lightweight_geom_data.h.
Definition at line 155 of file lightweight_geom_data.h.
Definition at line 131 of file lightweight_geom_data.h.
Definition at line 160 of file lightweight_geom_data.h.
Definition at line 137 of file lightweight_geom_data.h.
| TPoint2D mrpt::math::TPoint2D::operator/ | ( | double | d | ) | const [inline] |
Definition at line 170 of file lightweight_geom_data.h.
| TPoint2D& mrpt::math::TPoint2D::operator/= | ( | double | d | ) | [inline] |
Definition at line 149 of file lightweight_geom_data.h.
| bool mrpt::math::TPoint2D::operator< | ( | const TPoint2D & | p | ) | const |
| const double& mrpt::math::TPoint2D::operator[] | ( | size_t | i | ) | const [inline] |
Unsafe coordinate access using operator[].
Intended for loops.
Definition at line 118 of file lightweight_geom_data.h.
| double& mrpt::math::TPoint2D::operator[] | ( | size_t | i | ) | [inline] |
Unsafe coordinate access using operator[].
Intended for loops.
Definition at line 112 of file lightweight_geom_data.h.
| static size_t mrpt::math::TPoint2D::size | ( | ) | [inline, static] |
Definition at line 185 of file lightweight_geom_data.h.
| double mrpt::math::TPoint2D::x |
X coordinate.
Definition at line 71 of file lightweight_geom_data.h.
Referenced by mrpt::math::TSegment2D::getCenter(), mrpt::slam::CPointsMap::kdTreeClosestPoint2D(), mrpt::slam::CPointsMap::kdTreeClosestPoint2DsqrError(), mrpt::slam::CPointsMap::kdTreeNClosestPoint2D(), mrpt::slam::CPointsMap::kdTreeNClosestPoint2DIdx(), mrpt::slam::CPointsMap::kdTreeTwoClosestPoint2D(), mrpt::math::operator!=(), operator+=(), operator-=(), mrpt::math::operator==(), and mrpt::slam::CPointsMap::squareDistanceToClosestCorrespondenceT().
| double mrpt::math::TPoint2D::y |
Y coordinate.
Definition at line 75 of file lightweight_geom_data.h.
Referenced by mrpt::math::TSegment2D::getCenter(), mrpt::slam::CPointsMap::kdTreeClosestPoint2D(), mrpt::slam::CPointsMap::kdTreeClosestPoint2DsqrError(), mrpt::slam::CPointsMap::kdTreeNClosestPoint2D(), mrpt::slam::CPointsMap::kdTreeNClosestPoint2DIdx(), mrpt::slam::CPointsMap::kdTreeTwoClosestPoint2D(), mrpt::math::operator!=(), operator+=(), operator-=(), mrpt::math::operator==(), and mrpt::slam::CPointsMap::squareDistanceToClosestCorrespondenceT().
| Page generated by Doxygen 1.6.1 for MRPT 0.9.0 SVN: at Mon Jun 7 06:47:58 UTC 2010 |