예제 #1
0
 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());
 }
예제 #2
0
 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);
 }
예제 #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);
 }