示例#1
0
 public void TestAdjustmentRectangleCenter()
 {
     ccl.hull.AddLast(new PointF(0, 1));
     ccl.hull.AddLast(new PointF(0, 0));
     ccl.currentNode = ccl.hull.Last;
     ccl.hull.AddLast(new PointF(1, 0));
     ccl.hull.AddLast(new PointF(3, 1));
     ccl.hull.AddLast(new PointF(4, 2));
     ccl.hull.AddLast(new PointF(5, 1));
     ccl.AdjustmentRectangleCentre(new Rectangle(3, 1, 5, 2)).Should().Be(new Point(3, 3));
 }