39 for (
size_t i = 0; i < 3; i++) vector[i] =
director[i];
45 for (
int i = 0; i < 3; i++) v[i] =
director[i];
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.
std::array< double, 3 > director
Director vector.
void getDirectorVector(double(&vector)[3]) const
Get 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.
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.
TVector3D getDirectorVector() const
Get 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 .