Given I have a canvas that contains many shapes, lets say rectangles for now.
Each shape has a location (inches), size(inches) and rotation angle(degrees).
When a mouse click event happen inside the canvas for a location (x,y) in pixels.
I want to check if the clicked mouse position is inside/within a specific shape, considering the rotation angle and measurement unit conversion.
Can you help?
I found the answer (I have to convert al measurements to pixels to make sure it will calculate correctly):