pointIndexNear

open fun pointIndexNear(x: Double, y: Double): Int

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).


open fun pointIndexNear(point: Vector2): Int

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).