Computes the edge of the given polygon which is nearest to the given point .
The edges are obtained by the collection of points called polygon . It is assumed that the path points are sorted.
- Parameters
-
polygon | Sorted list of polygon points. |
point | Point relative to the path |
maxDistance | Heuristic maximum distance a point must have to an edge for being considered as solution immediately (optional). |
startEdgeIndex | Determines the edge index where to start the algorithm (optional). |
- Returns
- Index of the edge nearest to the given point .