public class VoronoiEdge extends BaseVoronoiEdge
Modifier and Type | Field and Description |
---|---|
protected BaseVoronoiVertex |
EndVertex
Vertex at the end of the edge
|
protected BaseVoronoiVertex |
StartVertex
Vertex at the beginning of the edge
|
Beginning, Direction, EdgeFace, End, IntersectingFace, Line, NextEdge, PreviousEdge
Constructor and Description |
---|
VoronoiEdge(BaseVoronoiVertex startVertex,
BaseVoronoiVertex endVertex,
BaseVoronoiFace edgeFace)
Create a new Voronoi edge from the start and end vertexes
|
Modifier and Type | Method and Description |
---|---|
BaseVoronoiEdge |
generatePair()
Generate the edge that corresponds to this edge on the intersecting face.
|
BaseVoronoiVertex |
getEndVertex()
Get the vertex at the end of this vector
|
BaseVoronoiVertex |
getStartVertex()
Get the vertex at the beginning of this vector
|
compareTo, computeIntersection, equals, getEdgeFace, getIntersectingFace, getLength, getLine, getNextEdge, getPreviousEdge, hashCode, isCCW, isCCW, joinEdges, toString
protected final BaseVoronoiVertex StartVertex
protected final BaseVoronoiVertex EndVertex
public VoronoiEdge(BaseVoronoiVertex startVertex, BaseVoronoiVertex endVertex, BaseVoronoiFace edgeFace)
startVertex
- Vertex at start of edgeendVertex
- Vertex at end of edgeedgeFace
- Face on which this edge residespublic BaseVoronoiVertex getEndVertex() throws java.lang.Exception
BaseVoronoiEdge
getEndVertex
in class BaseVoronoiEdge
java.lang.Exception
public BaseVoronoiVertex getStartVertex() throws java.lang.Exception
BaseVoronoiEdge
getStartVertex
in class BaseVoronoiEdge
java.lang.Exception
public BaseVoronoiEdge generatePair()
BaseVoronoiEdge
generatePair
in class BaseVoronoiEdge