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.
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 anExpandToContain
function which expands a rectangle in whatever direction is necessary to contain a given point.