Calculate the Euclidean distance between two points.

euclidean.distance(x1, x2, y1, y2)

Arguments

x1

x coordinate of point 1.

x2

x coordinate of point 2.

y1

y coordinate of point 1.

y2

y coordinate of point 2.

Value

The Euclidean distance x and y.

Examples

euclidean.distance(2,3,4,5)
#> [1] 1.414214