extend method
Creates a new Bounds obtained by expanding the current ones with a new point.
Implementation
Bounds<T> extend(Point<T> point) {
return Bounds._(
Point(math.min(point.x, min.x), math.min(point.y, min.y)),
Point(math.max(point.x, max.x), math.max(point.y, max.y)),
);
}