test collisions between rectangles and orthoganal lines at the corners