static Vec2D extents(Vec2D out, AABB a) { out[0] = (a[2] - a[0]) * 0.5; out[1] = (a[3] - a[1]) * 0.5; return out; }