| point2line index |
||||||||||
| Name | closestPointOnLineSegment ( ) | |||||||||
| Description | Calculates the closest point on a line segment from a given point using (orthogonal) projection of a vector onto another vector. | |||||||||
| Syntax | closestPointOnLineSegment(point, linePointA, linePointB); |
|||||||||
| Parameters |
|
|||||||||
| Returns | closest point on the line (Vect2) |
|||||||||
| Usage | Web & Application | |||||||||
| Related | ||||||||||
| Examples | |
|||||||||