Determines whether the point is inside contour, outside, or lies on an edge (or coinsides with a vertex). It returns positive, negative or zero value, correspondingly

C# | Visual Basic | Visual C++ |

When measureDist == false, the return value is >0 (inside), <0 (outside) and =0 (on edge), respectively.
When measureDist == true, it is a signed distance between the point and the nearest contour edge