combine static method

AABB combine(
  1. AABB out,
  2. AABB a,
  3. AABB b
)

Implementation

static AABB combine(AABB out, AABB a, AABB b) {
  out.left = min(a.left, b.left);
  out.top = min(a.top, b.top);
  out.right = max(a.right, b.right);
  out.bottom = max(a.bottom, b.bottom);
  return out;
}