24 #if GEOM_PSEUDO3D==GEOM_TRUE
25 namespace GEOM_FADE25D {
26 #elif GEOM_PSEUDO3D==GEOM_FALSE
27 namespace GEOM_FADE2D {
29 #error GEOM_PSEUDO3D is not defined
61 GCOUT<<
"VertexPair2::VertexPair2(),pSource==pTarget"<<std::endl;
62 GCOUT<<
"p0="<<p0<<
", p1="<<p1<<std::endl;
63 GCOUT<<
"*p0="<<*p0<<
", *p1="<<*p1<<std::endl;
92 #if GEOM_PSEUDO3D==GEOM_TRUE
115 return (p0==other.
p0 && p1==other.
p1);
128 if(p0<other.
p0)
return true;
129 if(p0>other.
p0)
return false;
130 return (p1<other.
p1);
155 if(bReverse)
return p1;
168 if(bReverse)
return p0;
180 stream <<
"("<<pr.
p0<<
","<<pr.
p1<<
"), "<<*pr.
getSrc()<<
" -> "<<*pr.
getTrg();
std::ostream & operator<<(std::ostream &stream, const Bbox2 &pC)
Prints the bounding box to a stream.
Definition: Bbox2.h:605
double sqDistance25D(const Point2 &p0, const Point2 &p1)
Get the squared 2.5D distance between two points.
Definition: Point2.h:720
double sqDistance2D(const Point2 &p0, const Point2 &p1)
Get the squared 2D distance between two points.
Definition: Point2.h:682
Represents a 2.5D point.
Definition: Point2.h:76
An edge consisting of two vertex pointers.
Definition: VertexPair2.h:43
Point2 * getTrg() const
Get the oriented target vertex pointer.
Definition: VertexPair2.h:166
bool operator<(const VertexPair2 &other) const
Less-than operator.
Definition: VertexPair2.h:126
VertexPair2()
Default constructor.
Definition: VertexPair2.h:77
Point2 * getSrc() const
Get the oriented source vertex pointer.
Definition: VertexPair2.h:153
Point2 * p1
The larger vertex pointer.
Definition: VertexPair2.h:173
double getSqLen25D() const
Get the squared 2.5D length of the edge.
Definition: VertexPair2.h:100
double getSqLen2D() const
Get the squared 2D length of the edge.
Definition: VertexPair2.h:88
bool operator==(const VertexPair2 &other) const
Equality operator.
Definition: VertexPair2.h:113
VertexPair2(Point2 *pSource, Point2 *pTarget)
Constructor that initializes the vertex pair with two different vertex pointers.
Definition: VertexPair2.h:56
bool bReverse
Flag indicating if the pointers were reversed.
Definition: VertexPair2.h:174
Point2 * p0
The smaller vertex pointer.
Definition: VertexPair2.h:172