Say 2 axis aligned rectangles, A and B, are positioned at the same point. I want to move B in direction D so that A and B are no longer overlapping. How far do I need to move B in direction D?
Right now I'm just doing an approximation, but trying to figure out a closed form solution.