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[0] = min(a[0], b[0]);
  out[1] = min(a[1], b[1]);
  out[2] = max(a[2], b[2]);
  out[3] = max(a[3], b[3]);
  return out;
}