out.x = min(a.x, b.x)
out.y = min(a.y, b.y)