Barotrauma Server
Loading...
Searching...
No Matches
Voronoi2.Voronoi Class Reference

Description of Voronoi. More...

Public Member Functions

 Voronoi (double minDistanceBetweenSites)
 
List< GraphEdgegenerateVoronoi (double[] xValuesIn, double[] yValuesIn, double minX, double maxX, double minY, double maxY)
 
List< GraphEdgeMakeVoronoiGraph (List< Vector2 > sites, int width, int height)
 
List< GraphEdgeMakeVoronoiGraph (double[] xVal, double[] yVal, int width, int height)
 
List< GraphEdgeMakeVoronoiGraph (double[] xVal, double[] yVal, Rectangle area)
 

Detailed Description

Description of Voronoi.

Constructor & Destructor Documentation

◆ Voronoi()

Voronoi2.Voronoi.Voronoi ( double minDistanceBetweenSites)

Member Function Documentation

◆ generateVoronoi()

List< GraphEdge > Voronoi2.Voronoi.generateVoronoi ( double[] xValuesIn,
double[] yValuesIn,
double minX,
double maxX,
double minY,
double maxY )
Parameters
xValuesInArray of X values for each site.
yValuesInArray of Y values for each site. Must be identical length to yValuesIn
minXThe minimum X of the bounding box around the voronoi
maxXThe maximum X of the bounding box around the voronoi
minYThe minimum Y of the bounding box around the voronoi
maxYThe 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: