suppose I have 2 rectangles as follows:

1. one encloses the other
2. they share at least 2 sides (3 or all 4 also possible)

how do I get the vector that describes the displacement required for the inner rectangle to move upto the non-shared side(s)?