Description of Voronoi.
More...
|
| | Voronoi (double minDistanceBetweenSites) |
| |
| List< GraphEdge > | generateVoronoi (double[] xValuesIn, double[] yValuesIn, double minX, double maxX, double minY, double maxY) |
| |
| List< GraphEdge > | MakeVoronoiGraph (List< Vector2 > sites, int width, int height) |
| |
| List< GraphEdge > | MakeVoronoiGraph (double[] xVal, double[] yVal, int width, int height) |
| |
| List< GraphEdge > | MakeVoronoiGraph (double[] xVal, double[] yVal, Rectangle area) |
| |
◆ Voronoi()
| Voronoi2.Voronoi.Voronoi |
( |
double | minDistanceBetweenSites | ) |
|
◆ generateVoronoi()
| List< GraphEdge > Voronoi2.Voronoi.generateVoronoi |
( |
double[] | xValuesIn, |
|
|
double[] | yValuesIn, |
|
|
double | minX, |
|
|
double | maxX, |
|
|
double | minY, |
|
|
double | maxY ) |
- Parameters
-
| xValuesIn | Array of X values for each site. |
| yValuesIn | Array of Y values for each site. Must be identical length to yValuesIn |
| minX | The minimum X of the bounding box around the voronoi |
| maxX | The maximum X of the bounding box around the voronoi |
| minY | The minimum Y of the bounding box around the voronoi |
| maxY | The maximum Y of the bounding box around the voronoi |
- Returns
◆ MakeVoronoiGraph() [1/3]
| List< GraphEdge > Voronoi2.Voronoi.MakeVoronoiGraph |
( |
double[] | xVal, |
|
|
double[] | yVal, |
|
|
int | width, |
|
|
int | height ) |
◆ MakeVoronoiGraph() [2/3]
| List< GraphEdge > Voronoi2.Voronoi.MakeVoronoiGraph |
( |
double[] | xVal, |
|
|
double[] | yVal, |
|
|
Rectangle | area ) |
◆ MakeVoronoiGraph() [3/3]
| List< GraphEdge > Voronoi2.Voronoi.MakeVoronoiGraph |
( |
List< Vector2 > | sites, |
|
|
int | width, |
|
|
int | height ) |
The documentation for this class was generated from the following file:
- /home/runner/work/Luatrauma.Docs/Luatrauma.Docs/libs/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/ProcGen/Voronoi.cs