Example #1
0
 public Grid3D(Grid3D <T> other, Location3D dimensions, Location3D offset)
     : this(dimensions, default, false)
 {
     for (int x = 0; x < other.Width; x++)
     {
         for (int y = 0; y < other.Height; y++)
         {
             for (int z = 0; z < other.Depth; z++)
             {
                 this[offset + (x, y, z)] = other.Values[x, y, z];
Example #2
0
 public Grid3D(Grid3D <T> other)
     : this(other, other.Dimensions, Location3D.Zero)
 {
 }