C# 클래스 VoronoiDemo, Unity-Voronoi

상속: Editor
파일 보기 프로젝트 열기: jesta88/Unity-Voronoi 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
bounds Bounds
chunkObj GameObject
graph VoronoiGraph
numSites int

공개 메소드들

메소드 설명
Compute ( List sites ) : void
CreateChunks ( ) : void
CreateSites ( bool clear = true, bool relax = false, int relaxCount = 2 ) : void
OnDrawGizmos ( ) : void
RelaxSites ( int iterations ) : void
Start ( ) : void
Update ( ) : void

비공개 메소드들

메소드 설명
CellArea ( Voronoi, cell ) : float
CellCentroid ( Voronoi, cell ) : Point
Distance ( Point a, Point b ) : float

메소드 상세

Compute() 공개 메소드

public Compute ( List sites ) : void
sites List
리턴 void

CreateChunks() 공개 메소드

public CreateChunks ( ) : void
리턴 void

CreateSites() 공개 메소드

public CreateSites ( bool clear = true, bool relax = false, int relaxCount = 2 ) : void
clear bool
relax bool
relaxCount int
리턴 void

OnDrawGizmos() 공개 메소드

public OnDrawGizmos ( ) : void
리턴 void

RelaxSites() 공개 메소드

public RelaxSites ( int iterations ) : void
iterations int
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

Update() 공개 메소드

public Update ( ) : void
리턴 void

프로퍼티 상세

bounds 공개적으로 프로퍼티

public Bounds bounds
리턴 Bounds

chunkObj 공개적으로 프로퍼티

public GameObject chunkObj
리턴 GameObject

graph 공개적으로 프로퍼티

public VoronoiGraph graph
리턴 VoronoiGraph

numSites 공개적으로 프로퍼티

public int numSites
리턴 int