Struct TSegment3D
Defined in File TSegment3D.h
Inheritance Relationships
Base Type
public mrpt::Stringifyable
Struct Documentation
-
struct TSegment3D : public mrpt::Stringifyable
3D segment, consisting of two points.
See also
Public Functions
-
TSegment3D() = default
Fast default constructor. Initializes to (0,0,0)-(0,0,0)
-
inline explicit TSegment3D(const TSegment2D &s)
Constructor from 2D object. Sets the z to zero
-
double length() const
Segment length
-
double distance(const TSegment3D &segment) const
Distance to another segment
-
void generate2DObject(TSegment2D &s) const
Projection into 2D space, discarding the z.
-
bool operator<(const TSegment3D &s) const
-
virtual std::string asString() const override
Public Static Functions
-
static inline TSegment3D FromPoints(const TPoint3D &p1, const TPoint3D &p2)
Static method, returns segment from two points.
Note
New in MRPT 2.3.0
-
TSegment3D() = default