Question: Determine whether a point with known coordinates is within a given polygon with known verticies


Imagine you have an irregular polygon as follows:

restart; with(plottools):with(plots):


with vertices that can be easily defined, and that you have an arbitrary point P(x,y) with coordinates of (x) and (y). I want Maple to check whether the point P(x,y) is inside or outside the polygon. In Matlab, the command (inpolygon) can be used for such a task. Is there a similar readily available command in Maple. 

Thank you very much for your help and support. 

Please Wait...