public class HalfedgeHandle<X extends Point_>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private TriangulationDSFace_2<X> |
c |
private TriangulationDSVertex_2<X> |
dest |
private int |
ind |
private TriangulationDSVertex_2<X> |
orig |
Constructor and Description |
---|
HalfedgeHandle(TriangulationDSFace_2<X> c,
int i) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
tests equality between EdgeHandles, which is defined by equality of their vertices.
|
TriangulationDSFace_2<X> |
getFace()
returns the face containing the half-edge.
|
HalfedgeHandle<X> |
getNext()
returns next half-edge in ccw order in the same face.
|
HalfedgeHandle<X> |
getOpposite()
returns opposite half-edge (lying in the adjacent face).
|
HalfedgeHandle<X> |
getPrev()
returns the previous half-edge in ccw order in the same face.
|
TriangulationDSVertex_2<X> |
getVertex()
returns the (destination) vertex incident the edge.
|
TriangulationDSVertex_2<X> |
getVertex(int index)
returns the vertex of prescribed index in the edge: 0 for origin, 1 for destination
|
int |
hashCode()
provides a hashing index for a EdgeHandle, based on the hashing indices of its vertices.
|
boolean |
hasVertex(TriangulationDSVertex_2<X> v)
returns whether the current edge has v as vertex.
|
int |
index()
returns the index of the vertex opposite of the current edge
in the corresponding incident face.
|
int |
index(TriangulationDSVertex_2<X> v)
returns the index of v in the current edge.
|
void |
invertMark()
inverts the mark of the edge (the mark of the opposite edge remains unchanged)
|
boolean |
isMarked()
returns the mark of the edge
|
void |
mark()
sets the mark of the edge (the mark of the opposite edge remains unchanged)
|
void |
setMark(boolean m)
sets the mark of the edge (the mark of the opposite edge remains unchanged)
|
java.lang.String |
toString() |
void |
unmark()
unsets the mark of the edge (the mark of the opposite edge remains unchanged)
|
private TriangulationDSFace_2<X extends Point_> c
private int ind
private TriangulationDSVertex_2<X extends Point_> orig
private TriangulationDSVertex_2<X extends Point_> dest
public HalfedgeHandle(TriangulationDSFace_2<X> c, int i)
public TriangulationDSFace_2<X> getFace()
public TriangulationDSVertex_2<X> getVertex()
public HalfedgeHandle<X> getNext()
public HalfedgeHandle<X> getPrev()
public HalfedgeHandle<X> getOpposite()
public TriangulationDSVertex_2<X> getVertex(int index)
public int index()
public boolean hasVertex(TriangulationDSVertex_2<X> v)
public int index(TriangulationDSVertex_2<X> v)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isMarked()
public void mark()
public void unmark()
public void invertMark()
public void setMark(boolean m)