After doing some internetting, I found people recommend using a
Minkowski sum to determine whether two rectangles are intersecting and
on what side.