| ShortestDistance | R Documentation |
Computes the Euclidean distance between a point and the line through two
points (used by DouglasPeucker).
ShortestDistance(p, line)
p |
A vector with the coordinates of the point. |
line |
A 2 x 2 matrix with the coordinates of two points of the line. |
A number, the distance of p from line.
DouglasPeucker
ShortestDistance(c(0, 1), rbind(c(0, 0), c(1, 0)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.