public class QuadEdge
extends java.lang.Object
for the Manipulation of General Subdivisions
and the Computation of Voronoi Diagrams (Leonidas Guibas,Jorge Stolfi)
Modifier and Type | Method and Description |
---|---|
static QuadEdge |
connect(QuadEdge e1,
QuadEdge e2)
Creates a new QuadEdge that connects e1.dest() to e2.orig()
|
static void |
deleteEdge(QuadEdge q)
Deletes a QuadEdge, that is, disconnects it from its cycle
(same for its dual and its symmetric).
|
Point_2 |
dest()
Returns the destination vertex of the QuadEdge.
|
QuadEdge |
dual()
Returns the dual QuadEdge, oriented at 90 degrees in direct order
|
QuadEdge |
dualSym()
Returns the symmetric of the dual QuadEdge
(which is also the dual of the symmetric QuadEdge).
|
boolean |
equals(java.lang.Object o) |
static void |
flipEdge(QuadEdge e)
Performs a flip of QuadEdge e.
|
int |
hashCode() |
QuadEdge |
lnext()
Returns the next QuadEdge along the left cycle (lnext.orig() == this.dest())
|
QuadEdge |
lprev()
Returns the previous QuadEdge along the left cycle (lprev.dest() == this.orig())
|
static QuadEdge |
makeEdge(Point_2 orig,
Point_2 dest)
Creates a new QuadEdge, setting next and dual fields to default null values.
|
QuadEdge |
next()
Returns the next QuadEdge starting at orig() in direct order
|
Point_2 |
orig()
Returns the origin vertex of the QuadEdge.
|
QuadEdge |
prev()
Returns the previous QuadEdge starting at orig() in direct order
|
QuadEdge |
rnext()
Returns the next QuadEdge along the right cycle (rnext.orig() == this.dest())
|
QuadEdge |
rprev()
Returns the previous QuadEdge along the right cycle (rprev.dest() == this.orig())
|
void |
setDual(QuadEdge dual)
sets dual QuadEdge.
|
void |
setNext(QuadEdge next)
Sets next QuadEdge starting from orig() in direct order.
|
void |
setOrig(Point_2 p)
Sets origin vertex of QuadEdge.
|
static void |
splice(QuadEdge a,
QuadEdge b)
Merges/splits umbrella around q1.orig() with umbrella around q2.orig().
|
QuadEdge |
sym()
Returns the symmetric QuadEdge, with origin and destination reversed.
|
java.lang.String |
toString() |
public java.lang.String toString()
toString
in class java.lang.Object
public QuadEdge next()
public QuadEdge dual()
public Point_2 orig()
public void setNext(QuadEdge next)
public void setDual(QuadEdge dual)
public void setOrig(Point_2 p)
public QuadEdge sym()
public Point_2 dest()
public QuadEdge dualSym()
public QuadEdge prev()
public QuadEdge rprev()
public QuadEdge rnext()
public QuadEdge lnext()
public QuadEdge lprev()
public static QuadEdge makeEdge(Point_2 orig, Point_2 dest)
orig
- origin of the segmentdest
- end of the segmentpublic static void splice(QuadEdge a, QuadEdge b)
q1,q2
- the 2 QuadEdge to attach/detachpublic static QuadEdge connect(QuadEdge e1, QuadEdge e2)
e1,e2
- the 2 QuadEdges to connectpublic static void flipEdge(QuadEdge e)
e
- the 2 QuadEdges to connectpublic static void deleteEdge(QuadEdge q)
q
- the QuadEdge to deletepublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object