pointLineD {SpatialGraph} | R Documentation |
Euclidean distance from a set of points to a line segment
Description
pointLineD
returns a list with a number of components from a points to line segment analysis
Usage
pointLineD(xy, xyp)
Arguments
xy |
2 x 2 [x,y] matrix defining the start and end of the segment |
xyp |
p x 2 [x,y] matrix with a point set |
Details
pointLineD
conduct a detailed points to segment distance analysis, returned as a list
Value
A list with the input components xy
and xyp
, and the aditional components: d
, point-line distance (distance between the points in xyp
and their perpendicular projections of the line); dc
, diferential chainage over [x0,y0] (> 0 if the projection goes in the segment direction); cross
, boolean vector indicating whether the perpendicular projection of the points crosses the segment, or not
See Also
[Package SpatialGraph version 1.0-4 Index]