Go to the documentation of this file.
48 throw std::out_of_range(
"index out of range");
61 throw std::out_of_range(
"index out of range");
constexpr bool operator!=(const TPoint2D_< T > &p1, const TPoint2D_< T > &p2)
Exact comparison between 2D points.
const TPoint3D & operator[](size_t i) const
Access to points using operator[0-1].
constexpr bool operator==(const TPoint2D_< T > &p1, const TPoint2D_< T > &p2)
Exact comparison between 2D points.
mrpt::serialization::CArchive & operator<<(mrpt::serialization::CArchive &s, const CVectorFloat &a)
double distance(const TPoint3D &point) const
Distance to point.
mrpt::vision::TStereoCalibResults out
void generate2DObject(TSegment2D &s) const
Projection into 2D space, discarding the z.
TSegment3D()=default
Fast default constructor.
TPoint3D & operator[](size_t i)
Access to points using operator[0-1].
Virtual base class for "archives": classes abstracting I/O streams.
TPoint3D point1
origin point
#define MRPT_DECLARE_TTYPENAME_NO_NAMESPACE(_TYPE, __NS)
Declares a typename to be "type" (without the NS prefix)
TPoint3D point2
final point
TSegment3D(const TPoint3D &p1, const TPoint3D &p2)
Constructor from both points.
double length() const
Segment length.
void getCenter(TPoint3D &p) const
Segment's central point.
bool operator<(const TSegment3D &s) const
2D segment, consisting of two points.
3D segment, consisting of two points.
bool contains(const TPoint3D &point) const
Check whether a point is inside the segment.
This base provides a set of functions for maths stuff.
mrpt::serialization::CArchive & operator>>(mrpt::serialization::CArchive &in, CMatrixD::Ptr &pObj)
TSegment3D(const TSegment2D &s)
Constructor from 2D object.
Page generated by Doxygen 1.8.18 for MRPT 2.0.4 at Thu Sep 24 07:14:18 UTC 2020 | |