Barotrauma Client Doc
|
Description of Voronoi. More...
Public Member Functions | |
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) |
Description of Voronoi.
Definition at line 75 of file Voronoi.cs.
Voronoi2.Voronoi.Voronoi | ( | double | minDistanceBetweenSites | ) |
Definition at line 106 of file Voronoi.cs.
List<GraphEdge> Voronoi2.Voronoi.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 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 |
Definition at line 126 of file Voronoi.cs.
List<GraphEdge> Voronoi2.Voronoi.MakeVoronoiGraph | ( | double[] | xVal, |
double[] | yVal, | ||
int | width, | ||
int | height | ||
) |
Definition at line 985 of file Voronoi.cs.
List<GraphEdge> Voronoi2.Voronoi.MakeVoronoiGraph | ( | double[] | xVal, |
double[] | yVal, | ||
Rectangle | area | ||
) |
Definition at line 990 of file Voronoi.cs.
List<GraphEdge> Voronoi2.Voronoi.MakeVoronoiGraph | ( | List< Vector2 > | sites, |
int | width, | ||
int | height | ||
) |
Definition at line 973 of file Voronoi.cs.