getNearSegment
getNearSegment(
point
,path
,distance
):number
Returns the index of segment which is closer to the point than distance
Parameters
• point: number
[]
• path: number
[][]
• distance: number
Returns
number
index of segment (-1 if not found)