20 #ifndef GEOS_TRIANGULATE_QUADEDGE_QUADEDGE_H 21 #define GEOS_TRIANGULATE_QUADEDGE_QUADEDGE_H 29 namespace triangulate {
65 static QuadEdge* makeEdge(
const Vertex& o,
const Vertex & d, std::deque<QuadEdgeQuartet> & edges);
193 return (num < 3) ? *(
this + 1) : *(
this - 3);
199 return (num < 3) ? *(
this + 1) : *(
this - 3);
210 return (num > 0) ? *(
this - 1) : *(
this + 3);
216 return (num > 0) ? *(
this - 1) : *(
this + 3);
227 return (num < 2) ? *(
this + 2) : *(
this - 2);
233 return (num < 2) ? *(
this + 2) : *(
this - 2);
323 return oNext().
sym();
329 return oNext().
sym();
351 return sym().
oNext();
409 return orig().getCoordinate().distance(dest().getCoordinate());
419 bool equalsNonOriented(
const QuadEdge& qe)
const;
428 bool equalsOriented(
const QuadEdge& qe)
const;
436 std::unique_ptr<geom::LineSegment> toLineSegment()
const;
445 #endif //GEOS_TRIANGULATE_QUADEDGE_QUADEDGE_H void setNext(QuadEdge *p_next)
Sets the connected edge.
void setOrig(const Vertex &o)
Sets the vertex for this edge's origin.
Models a site (node) in a QuadEdgeSubdivision.
const QuadEdge & dPrev() const
Gets the next CW edge around (into) the destination of this edge.
const QuadEdge & sym() const
Gets the edge from the destination to the origin of this edge.
const Vertex & orig() const
Gets the vertex for the edge's origin.
const QuadEdge & rot() const
Gets the dual of this edge, directed from its right to its left.
const QuadEdge & rNext() const
Gets the edge around the right face ccw following this edge.
const QuadEdge & lNext() const
Gets the CCW edge around the left face following this edge.
std::ostream & operator<<(std::ostream &os, const QuadEdge *e)
const QuadEdge & oNext() const
Gets the next CCW edge around the origin of this edge.
bool isLive() const
Tests whether this edge has been deleted.
Basic namespace for all GEOS functionalities.
const QuadEdge & invRot() const
Gets the dual of this edge, directed from its left to its right.
void setDest(const Vertex &d)
Sets the vertex for this edge's destination.
const QuadEdge & oPrev() const
Gets the next CW edge around (from) the origin of this edge.
double getLength() const
Gets the length of the geometry of this quadedge.
const Vertex & dest() const
Gets the vertex for the edge's destination.
A class that represents the edge data structure which implements the quadedge algebra.
const QuadEdge & lPrev() const
Gets the CCW edge around the left face before this edge.
const QuadEdge & dNext() const
Gets the next CCW edge around (into) the destination of this edge.
const QuadEdge & rPrev() const
Gets the edge around the right face ccw before this edge.