euclidean.distance.Rd
Calculate the Euclidean distance between two points.
euclidean.distance(x1, x2, y1, y2)
x1 | x coordinate of point 1. |
---|---|
x2 | x coordinate of point 2. |
y1 | y coordinate of point 1. |
y2 | y coordinate of point 2. |
The Euclidean distance x
and y
.
euclidean.distance(2,3,4,5)#> [1] 1.414214