コード例 #1
0
ファイル: Voronoi.cs プロジェクト: VB6Hobbyst7/Delaunay-2
        private void AddSite(PointF p, uint color, int index)
        {
            //throw new NotImplementedException("This was modified, might not work");
            System.Random random = new System.Random();
            float         weight = (float)random.NextDouble() * 100;
            Site          site   = Site.Create(p, index, weight, color);

            _sites.Push(site);
            _sitesIndexedByLocation[p] = site;
        }