예제 #1
0
파일: RectTest.cs 프로젝트: zon/cell
    public void Fit()
    {
        var bounds = Bounds2.MinMax(3.2, 4.1, 10.6, 12);
        var rect   = new Area();
        var scale  = 0.5;

        rect.Fit(bounds, scale);
        Assert.AreEqual(new Area(6, 8, 21, 24), rect);
    }