I am trying to determine if clickRectangle, a rectangle created by the click of a mouse, on a canvas intersects with a drawnRectangle or not.
However, I don’t want the intersects method to return true if I click anywhere in the drawnRectangle (i.e. the interior of the rectangle), I just want it to return true if an outer boundary of drawnRectangle was clicked.
How can I do that?
P.S: For clickRectangle and drawnRectangle see my comment below.
If I understand the question correctly, you want