public class VoronoiEdge extends BaseVoronoiEdge
Beginning, Direction, EdgeFace, End, IntersectingFace, Line, NextEdge, PreviousEdge
Constructor and Description |
---|
VoronoiEdge(VoronoiFace face,
VoronoiFace intersectingFace)
Generate a edge on a VoronoiFace.
|
Modifier and Type | Method and Description |
---|---|
VoronoiEdge |
findNextEdge(java.util.List<BaseVoronoiEdge> candidates)
Find the edge that is likely to be "next" on a face that contains
this edge.
|
VoronoiEdge |
generatePair()
Generate the edge that corresponds to this edge on the intersecting face.
|
VoronoiVertex |
getEndVertex()
Get the vertex at the end of this vector
|
VoronoiEdge |
getNextEdge()
Get the next edge on this face
|
BaseVoronoiEdge |
getPreviousEdge()
Get the next edge on this face
|
VoronoiVertex |
getStartVertex()
Get the vertex at the beginning of this vector
|
compareTo, computeIntersection, equals, getEdgeFace, getIntersectingFace, getLength, getLine, hashCode, isCCW, isCCW, joinEdges, toString
public VoronoiEdge(VoronoiFace face, VoronoiFace intersectingFace) throws java.lang.Exception
face
- Plane defining one face containing this edgeintersectingFace
- Plane defining the other face defining this edgejava.lang.Exception
- If faces are parallelpublic VoronoiEdge findNextEdge(java.util.List<BaseVoronoiEdge> candidates)
candidates
- All candidate edgespublic VoronoiVertex getStartVertex() throws java.lang.Exception
getStartVertex
in class BaseVoronoiEdge
java.lang.Exception
public VoronoiVertex getEndVertex() throws java.lang.Exception
getEndVertex
in class BaseVoronoiEdge
java.lang.Exception
public VoronoiEdge generatePair()
BaseVoronoiEdge
generatePair
in class BaseVoronoiEdge
public VoronoiEdge getNextEdge()
BaseVoronoiEdge
getNextEdge
in class BaseVoronoiEdge
public BaseVoronoiEdge getPreviousEdge()
BaseVoronoiEdge
getPreviousEdge
in class BaseVoronoiEdge