Description Usage Arguments Value Examples
View source: R/DistancePoints.R
DistancePoints
computes the distance between two points
1 | DistancePoints(P1, P2)
|
P1 |
Vector containing the xy-coordinates of point 1 |
P2 |
Vector containing the xy-coordinates of point 2 |
Returns the euclidean distance between two points
1 2 3 | P1 <- c(0,0)
P2 <- c(1,1)
d <- DistancePoints(P1, P2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.