Function isPointInPolygon

Determines if a Point is inside a Polygon defined by an array of Points.