Suppose i have coordinates of a rectangle. Now i want to find out if the touch event or click event position exists within the rectangle, How can i do that?
A B
C
D E
E.g i have this rectangle ABDE
. I clicked on C, now i have all the coordinates. How can i figure out that c exists within ABDE
I assume that Martix
is created for this purpose but I can't find any particular examples on internet.
Best Regards