ShortestDistance | R Documentation |
Shortes distance from a point o a 2d segment
ShortestDistance(p, line)
p |
coordinates of a point |
line |
a 2x2 matrix with the coordinates of two points defining a line |
A numeric value, the Euclidean distance of point p
to the line
.
data2hist
function and DouglasPeucker
function
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.