Fix the pointInPolygon function in the roto