public final class Voronoi extends Object
| Constructor and Description |
|---|
Voronoi(double minDistanceBetweenSites) |
| Modifier and Type | Method and Description |
|---|---|
List<GraphEdge> |
generateVoronoi(double[] xValuesIn,
double[] yValuesIn,
double minX,
double maxX,
double minY,
double maxY) |
protected void |
sortNode(List<com.almasb.fxgl.extra.algorithm.voronoi.Site> input) |
public List<GraphEdge> generateVoronoi(double[] xValuesIn, double[] yValuesIn, double minX, double maxX, double minY, double maxY)
xValuesIn - Array of X values for each site.yValuesIn - Array of Y values for each site. Must be identical length to yValuesInminX - The minimum X of the bounding box around the voronoimaxX - The maximum X of the bounding box around the voronoiminY - The minimum Y of the bounding box around the voronoimaxY - The maximum Y of the bounding box around the voronoiprotected void sortNode(List<com.almasb.fxgl.extra.algorithm.voronoi.Site> input)
Copyright © 2018. All rights reserved.