Lightweight 3D point. More...
#include <mrpt/math/lightweight_geom_data.h>
Public Member Functions | |
| TPoint3D (const TPoint2D &p) | |
| Implicit constructor from TPoint2D. | |
| TPoint3D (const TPose2D &p) | |
| Constructor from TPose2D, losing information. | |
| TPoint3D (const TPose3D &p) | |
| Constructor from TPose3D, losing information. | |
| TPoint3D (const mrpt::poses::CPoint3D &p) | |
| Implicit constructor from heavyweight type. | |
| TPoint3D (const mrpt::poses::CPose3D &p) | |
| Constructor from heavyweight 3D pose. | |
| TPoint3D (double xx, double yy, double zz) | |
| Constructor from coordinates. | |
| TPoint3D () | |
| 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[]. | |
| double | distanceTo (const TPoint3D &p) const |
| Point-to-point distance. | |
| double | sqrDistanceTo (const TPoint3D &p) const |
| Point-to-point distance, squared. | |
| double | norm () const |
| Point norm. | |
| void | operator*= (const double f) |
| Point scale. | |
| void | getAsVector (vector_double &v) const |
| Transformation into vector. | |
| const TPoint3D & | operator+= (const TPoint3D &p) |
| Translation. | |
| const TPoint3D & | operator-= (const TPoint3D &p) |
| Difference between points. | |
| TPoint3D | operator+ (const TPoint3D &p) |
| Point sum. | |
| TPoint3D | operator- (const TPoint3D &p) |
| Poinst substraction. | |
| bool | operator< (const TPoint3D &p) const |
Public Attributes | |
| double | x |
| X coordinate. | |
| double | y |
| Y coordinate. | |
| double | z |
| Z coordinate. | |
Lightweight 3D point.
Allows coordinate access using [] operator.
Definition at line 198 of file lightweight_geom_data.h.
| mrpt::math::TPoint3D::TPoint3D | ( | const TPoint2D & | p | ) |
| mrpt::math::TPoint3D::TPoint3D | ( | const TPose2D & | p | ) | [explicit] |
| mrpt::math::TPoint3D::TPoint3D | ( | const TPose3D & | p | ) | [explicit] |
| mrpt::math::TPoint3D::TPoint3D | ( | const mrpt::poses::CPoint3D & | p | ) |
Implicit constructor from heavyweight type.
| mrpt::math::TPoint3D::TPoint3D | ( | const mrpt::poses::CPose3D & | p | ) | [explicit] |
Constructor from heavyweight 3D pose.
| mrpt::math::TPoint3D::TPoint3D | ( | double | xx, | |
| double | yy, | |||
| double | zz | |||
| ) | [inline] |
Constructor from coordinates.
Definition at line 239 of file lightweight_geom_data.h.
| mrpt::math::TPoint3D::TPoint3D | ( | ) | [inline] |
Default fast constructor.
Initializes to garbage.
Definition at line 243 of file lightweight_geom_data.h.
| double mrpt::math::TPoint3D::distanceTo | ( | const TPoint3D & | p | ) | const [inline] |
Point-to-point distance.
Definition at line 259 of file lightweight_geom_data.h.
References mrpt::utils::square(), x, y, and z.
| void mrpt::math::TPoint3D::getAsVector | ( | vector_double & | v | ) | const [inline] |
Transformation into vector.
Definition at line 283 of file lightweight_geom_data.h.
| double mrpt::math::TPoint3D::norm | ( | ) | const [inline] |
Point norm.
Definition at line 271 of file lightweight_geom_data.h.
References mrpt::utils::square().
| void mrpt::math::TPoint3D::operator*= | ( | const double | f | ) | [inline] |
Point scale.
Definition at line 277 of file lightweight_geom_data.h.
Poinst substraction.
Definition at line 314 of file lightweight_geom_data.h.
Difference between points.
Definition at line 299 of file lightweight_geom_data.h.
| bool mrpt::math::TPoint3D::operator< | ( | const TPoint3D & | p | ) | const |
| const double& mrpt::math::TPoint3D::operator[] | ( | size_t | i | ) | const [inline] |
Unsafe coordinate access using operator[].
Intended for loops.
Definition at line 253 of file lightweight_geom_data.h.
| double& mrpt::math::TPoint3D::operator[] | ( | size_t | i | ) | [inline] |
Unsafe coordinate access using operator[].
Intended for loops.
Definition at line 247 of file lightweight_geom_data.h.
| double mrpt::math::TPoint3D::sqrDistanceTo | ( | const TPoint3D & | p | ) | const [inline] |
Point-to-point distance, squared.
Definition at line 265 of file lightweight_geom_data.h.
References mrpt::utils::square(), x, y, and z.
| double mrpt::math::TPoint3D::x |
X coordinate.
Definition at line 202 of file lightweight_geom_data.h.
Referenced by mrpt::slam::CPointsMap::boundingBox(), mrpt::opengl::CPolyhedron::CreateCubicPrism(), distanceTo(), mrpt::poses::CPoseOrPoint::distanceTo(), mrpt::math::TSegment3D::getCenter(), mrpt::slam::CSimplePointsMap::insertPoint(), mrpt::slam::CPointsMap::insertPoint(), mrpt::slam::CPointsMap::kdTreeClosestPoint3D(), mrpt::slam::CPointsMap::kdTreeNClosestPoint3D(), mrpt::slam::CPointsMap::kdTreeNClosestPoint3DIdx(), mrpt::math::operator!=(), mrpt::math::operator+(), operator+(), operator+=(), mrpt::math::operator-(), operator-(), operator-=(), mrpt::math::operator==(), mrpt::math::project3D(), mrpt::opengl::CRenderizable::setLocation(), and sqrDistanceTo().
| double mrpt::math::TPoint3D::y |
Y coordinate.
Definition at line 206 of file lightweight_geom_data.h.
Referenced by mrpt::slam::CPointsMap::boundingBox(), mrpt::opengl::CPolyhedron::CreateCubicPrism(), distanceTo(), mrpt::poses::CPoseOrPoint::distanceTo(), mrpt::math::TSegment3D::getCenter(), mrpt::slam::CSimplePointsMap::insertPoint(), mrpt::slam::CPointsMap::insertPoint(), mrpt::slam::CPointsMap::kdTreeClosestPoint3D(), mrpt::slam::CPointsMap::kdTreeNClosestPoint3D(), mrpt::slam::CPointsMap::kdTreeNClosestPoint3DIdx(), mrpt::math::operator!=(), mrpt::math::operator+(), operator+(), operator+=(), mrpt::math::operator-(), operator-(), operator-=(), mrpt::math::operator==(), mrpt::math::project3D(), mrpt::opengl::CRenderizable::setLocation(), and sqrDistanceTo().
| double mrpt::math::TPoint3D::z |
Z coordinate.
Definition at line 210 of file lightweight_geom_data.h.
Referenced by mrpt::slam::CPointsMap::boundingBox(), mrpt::opengl::CPolyhedron::CreateCubicPrism(), distanceTo(), mrpt::poses::CPoseOrPoint::distanceTo(), mrpt::math::TSegment3D::getCenter(), mrpt::slam::CSimplePointsMap::insertPoint(), mrpt::slam::CPointsMap::insertPoint(), mrpt::slam::CPointsMap::kdTreeClosestPoint3D(), mrpt::slam::CPointsMap::kdTreeNClosestPoint3D(), mrpt::slam::CPointsMap::kdTreeNClosestPoint3DIdx(), mrpt::math::operator!=(), mrpt::math::operator+(), operator+(), operator+=(), mrpt::math::operator-(), operator-(), operator-=(), mrpt::math::operator==(), mrpt::math::project3D(), mrpt::opengl::CRenderizable::setLocation(), and sqrDistanceTo().
| Page generated by Doxygen 1.6.2 for MRPT 0.8.1 SVN:exported at Mon Feb 15 22:01:07 UTC 2010 |