'Compute the maximum distance between points in the two hyperrectangles.
Parameters
other : hyperrectangle
Input.
p : float, optional
Input.'

def max_distance_rectangle(self, other, p=2.0):

    return minkowski_distance(0, np.maximum((self.maxes - other.mins), (other.maxes - self.mins)), p)
