pointOnLine {SpatialGraph} | R Documentation |
Snap a points to a line
Description
This function snaps a point to a line based on the minimum distance between the point and the line
Usage
pointOnLine(cool, coop)
Arguments
cool |
2-col matrix giving the coordinates of the line |
coop |
2-length vector repsenting the point |
Value
A 4-length vector, with 'x','y' [coordinates of the point snapped to the line], 'd' [distance from the input point to the new snapped point], and 'chain' [accumulated along-line distance from the starting of the line to the snapped point]
Author(s)
Javier Garcia-Pintado
See Also
[Package SpatialGraph version 1.0-4 Index]