Similar to how we have Rectangle2d.withDimensions except there wouldn't be an angle parameter for the bounding box.
I found this useful to have when I wanted to take a 2d bounding box and make both dimensions equal to the dimension with the greatest length. I suspect constructing the bounding box with BoundingBox2d.from or BoundingBox2d.fromExtema would be more verbose and less intuitive.
Similar to how we have
Rectangle2d.withDimensions
except there wouldn't be an angle parameter for the bounding box.I found this useful to have when I wanted to take a 2d bounding box and make both dimensions equal to the dimension with the greatest length. I suspect constructing the bounding box with
BoundingBox2d.from
orBoundingBox2d.fromExtema
would be more verbose and less intuitive.