This is a working code, which doesn't require the first and last points to be the same. The function is called IsInside() here.


Public Function IsInside(Xcoord As Double, Ycoord As Double,...