Revert distance calculation between 2 AARectShape

Distance between 2 rects use the same logic as before.
Distance between a rect and a circle will use a logic similar
to 2 rects. The circle is inscripted in a bounding box and we
calculate the distance between these 2 boxes.