#include <mrpt/math/lightweight_geom_data.h>
Public Member Functions | |
| bool | contains (const TPoint3D &point) const |
| Check whether a point is inside the line. | |
| double | distance (const TPoint3D &point) const |
| Distance between the line and a point. | |
| void | unitarize () |
| Unitarize director vector. | |
| void | getDirectorVector (double(&vector)[3]) const |
| Get director vector. | |
| void | getUnitaryDirectorVector (double(&vector)[3]) |
| Unitarize and then get director vector. | |
| void | generate2DObject (TLine2D &l) const |
| Project into 2D space, discarding the Z coordinate. | |
| TLine3D (const TPoint3D &p1, const TPoint3D &p2) throw (std::logic_error) | |
| Constructor from two points, through which the line will pass. | |
| TLine3D (const TSegment3D &s) | |
| Constructor from 3D segment. | |
| TLine3D () | |
| Fast default constructor. | |
| TLine3D (const TLine2D &l) | |
| Implicit constructor from 2D object. | |
Public Attributes | |
| TPoint3D | pBase |
| Base point. | |
| double | director [3] |
| Director vector. | |
Definition at line 699 of file lightweight_geom_data.h.
Constructor from two points, through which the line will pass.
| std::logic_error | if both points are the same. |
| mrpt::math::TLine3D::TLine3D | ( | const TSegment3D & | s | ) | [explicit] |
Constructor from 3D segment.
| mrpt::math::TLine3D::TLine3D | ( | ) | [inline] |
Fast default constructor.
Initializes to garbage.
Definition at line 753 of file lightweight_geom_data.h.
| mrpt::math::TLine3D::TLine3D | ( | const TLine2D & | l | ) |
Implicit constructor from 2D object.
Zeroes the z.
| bool mrpt::math::TLine3D::contains | ( | const TPoint3D & | point | ) | const |
Check whether a point is inside the line.
| double mrpt::math::TLine3D::distance | ( | const TPoint3D & | point | ) | const |
Distance between the line and a point.
| void mrpt::math::TLine3D::generate2DObject | ( | TLine2D & | l | ) | const [inline] |
Project into 2D space, discarding the Z coordinate.
| std::logic_error | if the line's director vector is orthogonal to the XY plane. |
Definition at line 738 of file lightweight_geom_data.h.
| void mrpt::math::TLine3D::getDirectorVector | ( | double(&) | vector[3] | ) | const [inline] |
| void mrpt::math::TLine3D::getUnitaryDirectorVector | ( | double(&) | vector[3] | ) | [inline] |
| void mrpt::math::TLine3D::unitarize | ( | ) |
Unitarize director vector.
| double mrpt::math::TLine3D::director[3] |
Director vector.
Definition at line 708 of file lightweight_geom_data.h.
Referenced by mrpt::math::operator<<(), and mrpt::math::operator>>().
Base point.
Definition at line 704 of file lightweight_geom_data.h.
Referenced by mrpt::math::operator<<(), and mrpt::math::operator>>().
| Page generated by Doxygen 1.5.9 for MRPT 0.7.1 SVN: at Mon Aug 17 22:20:53 EDT 2009 |