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