Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public bool Equals(GridRegion other)
 {
     return(Pos.Equals(other.Pos) && Size.Equals(other.Size));
 }