C# 클래스 Voronoi2.Voronoi

파일 보기 프로젝트 열기: evilfactory/Barotrauma-lua-attempt 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

MakeVoronoiGraph() 공개 메소드

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

MakeVoronoiGraph() 공개 메소드

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

MakeVoronoiGraph() 공개 메소드

public MakeVoronoiGraph ( List sites, int width, int height ) : List
sites List
width int
height int
리턴 List

Voronoi() 공개 메소드

public Voronoi ( double minDistanceBetweenSites ) : Microsoft.Xna.Framework
minDistanceBetweenSites double
리턴 Microsoft.Xna.Framework

generateVoronoi() 공개 메소드

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
리턴 List