Improve imageOverlay visibility test, add RectangleOverlap class.
Original scheme for checking if two (possibly rotated) rectangles overlap/intersect was imperfect. This adds a correct algorithm for checking the overlap.
Original scheme for checking if two (possibly rotated) rectangles overlap/intersect was imperfect. This adds a correct algorithm for checking the overlap.