Barotrauma Client Doc
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.

Definition at line 75 of file Voronoi.cs.

Constructor & Destructor Documentation

◆ Voronoi()

Voronoi2.Voronoi.Voronoi ( double  minDistanceBetweenSites)

Definition at line 106 of file Voronoi.cs.

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

Definition at line 126 of file Voronoi.cs.

◆ MakeVoronoiGraph() [1/3]

List<GraphEdge> Voronoi2.Voronoi.MakeVoronoiGraph ( double[]  xVal,
double[]  yVal,
int  width,
int  height 
)

Definition at line 985 of file Voronoi.cs.

◆ MakeVoronoiGraph() [2/3]

List<GraphEdge> Voronoi2.Voronoi.MakeVoronoiGraph ( double[]  xVal,
double[]  yVal,
Rectangle  area 
)

Definition at line 990 of file Voronoi.cs.

◆ MakeVoronoiGraph() [3/3]

List<GraphEdge> Voronoi2.Voronoi.MakeVoronoiGraph ( List< Vector2 >  sites,
int  width,
int  height 
)

Definition at line 973 of file Voronoi.cs.