예제 #1
0
 protected IntBounds RecalculateBounds()
 {
     _bounds = new IntBounds();
     foreach (var index in _grid.Keys)
     {
         ExtendBounds(index);
     }
     _boundsDirty = false;
     return(_bounds);
 }
예제 #2
0
 protected BaseSparseGrid()
 {
     _grid   = new Dictionary <TKey, TValue>();
     _bounds = new IntBounds();
 }