Rectangles Intersection (Vertical line)
问题 For a given rectangle R1 I am trying to find out which are the other rectangles that could intersect with it IF I draw a vectical line segment. The rectangles that intersect with R1 are marked in Red. Every rectangle is characterized by its (top, left) and (bottom, right) coordinates. R1 = [top, left, bottom, right],...,Rn = [top, left, bottom, right] By using the coordinates and the vertical line. I want to find the rectangles that intersects with R1 Solution I found the following library