pointIndexNear
Finds the index into the firstPath's points list of the corner nearest to (x, y). This assumes paths is defined, and contains a single list (i.e. is a simple polygon, with no holes).
Finds the index into the firstPath's points list of the corner nearest to the given point. This assumes paths is defined, and contains a single list (i.e. is a simple polygon, with no holes).