This example demonstrates how to use the ray casting algorithm to determine whether a point is inside a polygon. This algorithm is described in the following topics:
How can I determine whether a 2D Point is within a Polygon?
C# Point in polygon
How can I determine whether a 2D Point is within a Polygon?
C# Point in polygon