C# Class VoronoiDemo, Unity-Voronoi

Inheritance: Editor
Afficher le fichier Open project: jesta88/Unity-Voronoi Class Usage Examples

Méthodes publiques

Свойство Type Description
bounds Bounds
chunkObj GameObject
graph VoronoiGraph
numSites int

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
CellArea ( Voronoi, cell ) : float
CellCentroid ( Voronoi, cell ) : Point
Distance ( Point a, Point b ) : float

Method Details

Compute() public méthode

public Compute ( List sites ) : void
sites List
Résultat void

CreateChunks() public méthode

public CreateChunks ( ) : void
Résultat void

CreateSites() public méthode

public CreateSites ( bool clear = true, bool relax = false, int relaxCount = 2 ) : void
clear bool
relax bool
relaxCount int
Résultat void

OnDrawGizmos() public méthode

public OnDrawGizmos ( ) : void
Résultat void

RelaxSites() public méthode

public RelaxSites ( int iterations ) : void
iterations int
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

bounds public_oe property

public Bounds bounds
Résultat Bounds

chunkObj public_oe property

public GameObject chunkObj
Résultat GameObject

graph public_oe property

public VoronoiGraph graph
Résultat VoronoiGraph

numSites public_oe property

public int numSites
Résultat int