public class VoronoiVertex extends BaseVoronoiVertex
Modifier and Type | Field and Description |
---|---|
protected java.util.Set<VoronoiFace> |
Faces
List of faces on which this vertex resides
|
Distance, Position
Constructor and Description |
---|
VoronoiVertex(double[] position,
java.util.Collection<VoronoiFace> faces)
Initialize a vertex.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(BaseVoronoiVertex o) |
boolean |
equals(java.lang.Object obj) |
java.util.Set<VoronoiFace> |
getFaces()
Get the list of faces on which this vertex resides
|
int |
hashCode() |
distanceFrom, getCentroid, getDistanceFromCenter, getPosition, toString
protected final java.util.Set<VoronoiFace> Faces
public VoronoiVertex(double[] position, java.util.Collection<VoronoiFace> faces)
position
- Position of vertexfaces
- Faces on which vertex residespublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class BaseVoronoiVertex
public int compareTo(BaseVoronoiVertex o)
compareTo
in interface java.lang.Comparable<BaseVoronoiVertex>
compareTo
in class BaseVoronoiVertex
public java.util.Set<VoronoiFace> getFaces()