| point2line index |
||||||||||
| Name | closestPointToLine ( ) | |||||||||
| Description | Finds the closest point on a continuous line from an array of points.
Credits for the algorithm goes to softsurfer.com. http://softsurfer.com/Archive/algorithm_0102/algorithm_0102.htm#closest2D_Point_to_Line() |
|||||||||
| Syntax | closestPointToLine(points, linePointA, linePointB); |
|||||||||
| Parameters |
|
|||||||||
| Returns | index of the closest point to the line (int) |
|||||||||
| Usage | Web & Application | |||||||||
| Related | ||||||||||
| Examples | |
|||||||||