I'm creating a SVG editor.

I have a simple selection tool that appears when I click and move my mouse from a blank area in my SVG.

My SVG is populated with rectangles that can have a rotation applied to.

My question is how can I verify if my selection area is over one ore more of these rectangles?

Here is the kind of render I'm trying to have:
[![selection][1]][1]


  [1]: https://i.sstatic.net/jtAGY.png