Calculates euclidian distance between two points.

euclid_distance(point1, point2)

Arguments

point1

2D vector of X and Y position

point2

2D vector of X and Y position

Value

numeric or NA if not valid

Examples

print(euclid_distance(c(0,0), c(1,1)))
#> [1] 1.414214