public void BothCellVertices(int pointCount)
 {
     border      = new Rectangle(new Point(0, 10), new Point(10, 0));
     scatterPlot = new ScatterPlot(border, pointCount);
     voronoi     = scatterPlot.Voronoi();
     Assert.AreEqual(pointCount, voronoi.Cells().Count());
 }
 public void SetUp()
 {
     site    = new Point(3, 4);
     border  = new Rectangle(new Point(1, 5), new Point(8, -1));
     voronoi = new VoronoiDiagramBordered(new List <Point> {
         site
     }, border);
 }
Beispiel #3
0
 public void SetUp()
 {
     sites = new List <Point> {
         new Point(1, 1), new Point(3, 1)
     };
     border  = new Rectangle(new Point(0, 2), new Point(4, 0));
     voronoi = new VoronoiDiagramBordered(sites, border);
 }