thesadrogue / TheSadRogue.Primitives

A collection of primitive data structures for working with a 2-dimensional grid.
MIT License
21 stars 6 forks source link

Add Rectangle Expansion Functions #87

Open Chris3606 opened 2 years ago

Chris3606 commented 2 years ago

Rectangle currently has the Expand function which expands a rectangle by a given amount on each side; however, it would also be useful to have an ExpandToContain function which expands a rectangle in whatever direction is necessary to contain a given point.