This function calculates the coordinates of the nearest point on a line to a given point. This function does not work with geographic coordinates.
Matrix with coordinates of line vertices. Each row represents a vertex.
A vector representing the X and Y coordinates of the point.
Vector with the X and Y coordinates of the nearest point on a line to the given point.
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.