예제 #1
0
    public Shape GetInputGrid(float allCalcs)
    {
        if (allCalcs == 0)
        {
            return(new GridShape(position, _shape, new Vector2(0, 0)));
        }
        else if (allCalcs == 1.0f)
        {
            return(_pixelGrid);
        }
        else
        {
            GridShape degenerate   = new GridShape(position, _shape, new Vector2(0, 0));
            GridShape interpolated = degenerate.InterpolatedGrid(_pixelGrid, allCalcs);

            return(interpolated);
        }
    }