63 for (
size_t i = 0; i < 3; i++) vector[i] =
director[i];
static TLine3D FromTwoPoints(const TPoint3D &p1, const TPoint3D &p2)
Static constructor from two points.
const TVector3D & getDirectorVector() const
Get director vector (may be NOT unitary if not set so by the user)
TPoint3D pBase
Base point.
void generate2DObject(TLine2D &l) const
Project into 2D space, discarding the Z coordinate.
mrpt::serialization::CArchive & operator>>(mrpt::serialization::CArchive &in, CMatrixD::Ptr &pObj)
void getUnitaryDirectorVector(double(&vector)[3])
Unitarize and then get director vector.
This base provides a set of functions for maths stuff.
3D segment, consisting of two points.
void getDirectorVector(double(&vector)[3]) const
Get director vector.
TVector3D director
Director vector.
#define MRPT_DECLARE_TTYPENAME_NO_NAMESPACE(_TYPE, __NS)
Declares a typename to be "type" (without the NS prefix)
bool contains(const TPoint3D &point) const
Check whether a point is inside the line.
static TLine3D FromPointAndDirector(const TPoint3D &basePoint, const TVector3D &directorVector)
Static constructor from a point and a director vector.
Virtual base class for "archives": classes abstracting I/O streams.
mrpt::vision::TStereoCalibResults out
mrpt::serialization::CArchive & operator<<(mrpt::serialization::CArchive &s, const CVectorFloat &a)
void unitarize()
Unitarize director vector.
TLine3D()=default
Fast default constructor.
double distance(const TPoint3D &point) const
Distance between the line and a point.
3D line, represented by a base point and a director vector.
2D line without bounds, represented by its equation .