intersect method

Box2 intersect(
  1. Box2 box
)

Implementation

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

  return this;
}