dist_to_line | R Documentation |
Compute distance between a set of points and a line defined by two points
dist_to_line(pts, a = NULL, b = NULL)
pts |
a data frame or matrix with 3 columns of coordinates |
a |
vector of coordinates of a point on the line |
b |
a second point on the line |
vector of distances
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.