function isInsidePolygon input Real polygon[:, 2] "Polygon points (x,y)"; input Real point[2] "Point inside, outside or on polygon"; output Boolean inside "= true, if point is inside or on polygon, otherwise point is outside of polygon"; end isInsidePolygon;
2009/12/04 creation by E. Thomas from c code INPOLY.C (Freeware source code http://www.visibone.com/inpoly/inpoly.c)