def inBoundary(box,boundary):
    """
    Returns whether the box is in the boundary defined for this merge.
    """
    x1, y1, x2, y2 = boundary
    xc, yc = box.center
    return xc > x1 and xc < x2 and yc > y1 and yc < y2