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; }