25 #if GEOM_PSEUDO3D==GEOM_TRUE
26 namespace GEOM_FADE25D {
27 #elif GEOM_PSEUDO3D==GEOM_FALSE
28 namespace GEOM_FADE2D {
30 #error GEOM_PSEUDO3D is not defined
100 #if GEOM_PSEUDO3D==GEOM_TRUE
109 double getSqLen25D()
const;
157 if(src<other.
src)
return true;
158 if(src>other.
src)
return false;
159 return trg<other.
trg;
Represents a 2D point.
Definition: Point2.h:61
Represents a line segment between two points.
Definition: Segment2.h:41
Point2 trg
The target point of the segment.
Definition: Segment2.h:44
CLASS_DECLSPEC bool operator==(const Segment2 &other) const
Equality operator for the Segment2 class.
CLASS_DECLSPEC friend std::ostream & operator<<(std::ostream &stream, Segment2 seg)
Stream output operator for the Segment2 class.
CLASS_DECLSPEC double getSqLen2D() const
Calculate the squared 2D length of the segment.
CLASS_DECLSPEC Segment2()
Default constructor for a Segment2 object.
CLASS_DECLSPEC Point2 getTrg() const
Get the target point of the segment.
CLASS_DECLSPEC Point2 getSrc() const
Get the source point of the segment.
CLASS_DECLSPEC void swapSrcTrg()
Swap the source and target points of the segment.
bool operator<(const Segment2 &other) const
Less-than operator for comparing two segments lexicographically.
Definition: Segment2.h:155
CLASS_DECLSPEC Segment2(const Point2 &src_, const Point2 &trg_)
Create a Segment2 object with specified source and target points.
Point2 src
The source point of the segment.
Definition: Segment2.h:43
Definition: Segment2.h:170