mergeWith method
Merges this BoundingBox with another BoundingBox, resulting in a new BoundingBox that encompasses both.
Implementation
BoundingBox mergeWith(BoundingBox other) => BoundingBox(
minX: _lowestValue(minX, other.minX),
maxX: _highestValue(maxX, other.maxX),
minY: _lowestValue(minY, other.minY),
maxY: _highestValue(maxY, other.maxY),
);