public class Voronoi extends Object
Modifier and Type | Method and Description |
---|---|
static List<Line2d> |
computeVoronoiEdges(List<? extends Point2d> points)
Compute the Voronoi diagram as a list of its edges
|
static List<Line2d> |
computeVoronoiEdges(List<? extends Point2d> points,
double width,
double height)
Compute the Voronoi diagram as a list of its edges
|
static org.jgrapht.Graph<Point2d,org.jgrapht.graph.DefaultEdge> |
computeVoronoiGraph(List<? extends Point2d> points)
Compute the Voronoi diagram as a graph of its vertices
|
static org.jgrapht.Graph<Point2d,org.jgrapht.graph.DefaultEdge> |
computeVoronoiGraph(List<? extends Point2d> points,
double width,
double height)
Compute the Voronoi diagram as a graph of its vertices
|
public static org.jgrapht.Graph<Point2d,org.jgrapht.graph.DefaultEdge> computeVoronoiGraph(List<? extends Point2d> points)
points
- the verticespublic static org.jgrapht.Graph<Point2d,org.jgrapht.graph.DefaultEdge> computeVoronoiGraph(List<? extends Point2d> points, double width, double height)
points
- the verticeswidth
- the width of the diagramheight
- the height of the diagrampublic static List<Line2d> computeVoronoiEdges(List<? extends Point2d> points)
points
- the verticespublic static List<Line2d> computeVoronoiEdges(List<? extends Point2d> points, double width, double height)
points
- the verticeswidth
- the width of the diagramheight
- the height of the diagram