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
75 #if GEOM_PSEUDO3D==GEOM_TRUE
90 friend std::ostream &operator<<(std::ostream &stream,
Segment2 seg);
105 if(src<other.src)
return true;
106 if(src>other.src)
return false;
107 return trg<other.trg;
119 struct CLASS_DECLSPEC Func_compareSegment
121 bool operator()(
const Segment2* seg0,
const Segment2* seg1)
const
123 if(seg0->getSrc()<seg1->getSrc())
return true;
124 if(seg0->getSrc()>seg1->getSrc())
return false;
125 if(seg0->getTrg()<seg1->getTrg())
return true;
126 if(seg0->getTrg()>seg1->getTrg())
return false;
Point.
Definition: Point2.h:53
Segment.
Definition: Segment2.h:39
bool operator<(const Segment2 &other) const
Definition: Segment2.h:103
double getSqLen2D() const
Segment2(const Point2 &src_, const Point2 &trg_)
Create a Segment2.
double getSqLen25D() const
bool operator==(const Segment2 &other) const