Esempio n. 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];
Esempio n. 2
0
 public SquareGrid2D(SquareGrid2D <T> other, Location2D dimensions, Location2D offset)
     : base(other, dimensions, offset)
 {
 }
Esempio n. 3
0
 protected Grid2D(Location2D dimensions, T defaultValue, bool initializeValueCounters)
     : this(dimensions.X, dimensions.Y, defaultValue, initializeValueCounters)
 {
 }
Esempio n. 4
0
 public Grid2D(Location2D dimensions)
     : this(dimensions.X, dimensions.Y, default)
 {
 }
Esempio n. 5
0
 public PrintableGrid2D(Location2D dimensions)
     : this(dimensions.X, dimensions.Y)
 {
 }