union method

BoundingBox union(
  1. BoundingBox box
)

Implementation

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

  return this;
}