determine if a point is inside a polygon