Delaunay.Voronoi.Voronoi C# (CSharp) Method

Voronoi() public method

public Voronoi ( List points, List colors, Rect plotBounds ) : UnityEngine
points List
colors List
plotBounds Rect
return UnityEngine
		public Voronoi (List<Vector2> points, List<uint> colors, Rect plotBounds)
		{
			_sites = new SiteList ();
			_sitesIndexedByLocation = new Dictionary <Vector2,Site> (); // XXX: Used to be Dictionary(true) -- weak refs. 
			AddSites (points, colors);
			_plotBounds = plotBounds;
			_triangles = new List<Triangle> ();
			_edges = new List<Edge> ();
			FortunesAlgorithm ();
		}