Checking if a point is inside convex contour