finding if the click exists in set of coordinates
<p>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?</p>

<pre><code>A      B

    C

D      E
</code></pre>

<p>E.g i have this rectangle <code>ABDE</code>. I clicked on C, now i have all the coordinates. How can i figure out that c exists within <code>ABDE</code></p>

<p>I assume that <code>Martix</code> is created for this purpose but I can't find any particular examples on internet.</p>

<p>Best Regards</p>
