#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. | |
Public Attributes | |
double | x |
X coordinate. | |
double | y |
Y coordinate. |
Allows coordinate access using [] operator.
Definition at line 63 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] |
mrpt::math::TPoint2D::TPoint2D | ( | ) | [inline] |
Default fast constructor.
Initializes to garbage.
Definition at line 104 of file lightweight_geom_data.h.
void mrpt::math::TPoint2D::getAsVector | ( | vector_double & | v | ) | const [inline] |
const double& mrpt::math::TPoint2D::operator[] | ( | size_t | i | ) | const [inline] |
Unsafe coordinate access using operator[].
Intended for loops.
Definition at line 114 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 108 of file lightweight_geom_data.h.
double mrpt::math::TPoint2D::x |
X coordinate.
Definition at line 67 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!=(), mrpt::math::operator==(), and mrpt::slam::CPointsMap::squareDistanceToClosestCorrespondenceT().
double mrpt::math::TPoint2D::y |
Y 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!=(), mrpt::math::operator==(), and mrpt::slam::CPointsMap::squareDistanceToClosestCorrespondenceT().
Page generated by Doxygen 1.5.9 for MRPT 0.7.1 SVN: at Mon Aug 17 22:27:43 EDT 2009 |