union method

Box2 union(
  1. Box2 box
)

Implementation

Box2 union(Box2 box) {
  min.min(box.min);
  max.max(box.max);

  return this;
}