Exemple #1
0
 public Grid2D(Grid2D <T> other, Location2D dimensions, Location2D offset)
     : this(dimensions, default, false)
 {
     for (int x = 0; x < other.Width; x++)
     {
         for (int y = 0; y < other.Height; y++)
         {
             this[offset + (x, y)] = other.Values[x, y];
Exemple #2
0
 public SquareGrid2D(SquareGrid2D <T> other, Location2D dimensions, Location2D offset)
     : base(other, dimensions, offset)
 {
 }
Exemple #3
0
 protected Grid2D(Location2D dimensions, T defaultValue, bool initializeValueCounters)
     : this(dimensions.X, dimensions.Y, defaultValue, initializeValueCounters)
 {
 }
Exemple #4
0
 public Grid2D(Location2D dimensions)
     : this(dimensions.X, dimensions.Y, default)
 {
 }
 public PrintableGrid2D(Location2D dimensions)
     : this(dimensions.X, dimensions.Y)
 {
 }