Example #1
0
        private GridData(GridSize size, double[,] data)
        {
            if (data.GetLength(0) != size.Height || data.GetLength(1) != size.Width)
            {
                throw new ArgumentException("Dimensions don't match.");
            }

            Size   = size;
            m_Data = data;
            Bounds = new GridRegion(GridIndex.Zero, Size);
        }
 public bool Equals(GridRegion other)
 {
     return(Pos.Equals(other.Pos) && Size.Equals(other.Size));
 }