public class TriangulationDSVertex_2<X extends Point_> extends java.lang.Object implements java.lang.Comparable<TriangulationDSVertex_2<X>>
| Constructor and Description |
|---|
TriangulationDSVertex_2()
creates an empty vertex, with no associated geometric point.
|
TriangulationDSVertex_2(TriangulationDSFace_2<X> c,
X point)
creates a vertex with an associated geometric point and an associated cell.
|
TriangulationDSVertex_2(X point)
creates a vertex with an associated geometric point.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(TriangulationDSVertex_2<X> v) |
TriangulationDSFace_2<X> |
getFace()
returns the cell associated with the vertex.
|
X |
getPoint()
returns the geometric point associated with the vertex.
|
void |
setFace(TriangulationDSFace_2<X> c)
sets the face associated with the vertex.
|
void |
setPoint(X point)
sets the geometric point associated with the vertex.
|
java.lang.String |
toString()
returns a string listing the coordinates of the geometric point associated with the vertex.
|
public TriangulationDSVertex_2()
public TriangulationDSVertex_2(X point)
point - public TriangulationDSVertex_2(TriangulationDSFace_2<X> c, X point)
public void setFace(TriangulationDSFace_2<X> c)
public void setPoint(X point)
public X getPoint()
public TriangulationDSFace_2<X> getFace()
public java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(TriangulationDSVertex_2<X> v)
compareTo in interface java.lang.Comparable<TriangulationDSVertex_2<X extends Point_>>