C# Class Voronoi2.Voronoi

Mostrar archivo Open project: evilfactory/Barotrauma-lua-attempt Class Usage Examples

Public Methods

Method Description
MakeVoronoiGraph ( Array xVal, Array yVal, Rectangle area ) : List
MakeVoronoiGraph ( Array xVal, Array yVal, int width, int height ) : List
MakeVoronoiGraph ( List sites, int width, int height ) : List
Voronoi ( double minDistanceBetweenSites ) : Microsoft.Xna.Framework
generateVoronoi ( Array xValuesIn, Array yValuesIn, double minX, double maxX, double minY, double maxY ) : List

Private Methods

Method Description
ELdelete ( Halfedge he ) : void
ELgethash ( int b ) : Halfedge
ELinitialize ( ) : bool
ELinsert ( Halfedge lb, Halfedge newHe ) : void
ELleft ( Halfedge he ) : Halfedge
ELleftbnd ( Voronoi2.DoubleVector2 p ) : Halfedge
ELright ( Halfedge he ) : Halfedge
HEcreate ( Voronoi2.Edge e, int pm ) : Halfedge
PQ_min ( ) : DoubleVector2
PQbucket ( Halfedge he ) : int
PQdelete ( Halfedge he ) : void
PQempty ( ) : bool
PQextractmin ( ) : Halfedge
PQinitialize ( ) : bool
PQinsert ( Halfedge he, Site v, double offset ) : void
bisect ( Site s1, Site s2 ) : Edge
clip_line ( Edge e ) : void
dist ( Site s, Site t ) : double
endpoint ( Edge e, int lr, Site s ) : void
intersect ( Halfedge el1, Halfedge el2 ) : Site
leftreg ( Halfedge he ) : Site
makevertex ( Site v ) : void
nextone ( ) : Site
pushGraphEdge ( Site leftSite, Site rightSite, Vector2 point1, Vector2 point2 ) : void
qsort ( Array sites ) : void
right_of ( Halfedge el, DoubleVector2 p ) : bool
rightreg ( Halfedge he ) : Site
sort ( Array xValuesIn, Array yValuesIn, int count ) : void
sortNode ( Array xValues, Array yValues, int numPoints ) : void
voronoi_bd ( ) : bool

Method Details

MakeVoronoiGraph() public method

public MakeVoronoiGraph ( Array xVal, Array yVal, Rectangle area ) : List
xVal Array
yVal Array
area Rectangle
return List

MakeVoronoiGraph() public method

public MakeVoronoiGraph ( Array xVal, Array yVal, int width, int height ) : List
xVal Array
yVal Array
width int
height int
return List

MakeVoronoiGraph() public method

public MakeVoronoiGraph ( List sites, int width, int height ) : List
sites List
width int
height int
return List

Voronoi() public method

public Voronoi ( double minDistanceBetweenSites ) : Microsoft.Xna.Framework
minDistanceBetweenSites double
return Microsoft.Xna.Framework

generateVoronoi() public method

public generateVoronoi ( Array xValuesIn, Array yValuesIn, double minX, double maxX, double minY, double maxY ) : List
xValuesIn Array
yValuesIn Array
minX double
maxX double
minY double
maxY double
return List