Helper responsible to check if a point is contained in a polygon.