public class VoronoiVertex extends BaseVoronoiVertex
Modifier and Type | Field and Description |
---|---|
protected BaseVoronoiEdge |
NextEdge
Edge that is after this vertex
|
protected BaseVoronoiEdge |
PreviousEdge
Edge that is before this vertex
|
Distance, Position
Constructor and Description |
---|
VoronoiVertex(VoronoiEdge edge1,
VoronoiEdge edge2)
Create a new vertex as the intersection of two edges.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(BaseVoronoiVertex other) |
boolean |
equals(java.lang.Object obj) |
BaseVoronoiEdge |
getNextEdge()
Get edge after this vertex
|
BaseVoronoiEdge |
getPreviousEdge()
Get the edge before this vertex
|
boolean |
isOnEdge(BaseVoronoiEdge edge)
Check if a vertex is on a certain edge
|
distanceFrom, getCentroid, getDistanceFromCenter, getPosition, hashCode, toString
protected BaseVoronoiEdge NextEdge
protected BaseVoronoiEdge PreviousEdge
public VoronoiVertex(VoronoiEdge edge1, VoronoiEdge edge2) throws java.lang.Exception
edge1
- First edgeedge2
- Second edgejava.lang.Exception
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int compareTo(BaseVoronoiVertex other)
compareTo
in interface java.lang.Comparable<BaseVoronoiVertex>
compareTo
in class BaseVoronoiVertex
public BaseVoronoiEdge getNextEdge()
public BaseVoronoiEdge getPreviousEdge()
public boolean isOnEdge(BaseVoronoiEdge edge)
edge
- Edge in question