powered by
A vector given by two points in a plane.
vector_length(p1, p2 = c(0, 0))
The length of the vector.
The first point (x, y).
The second point (x, y).
Other geometry functions: get_intersection(), points2equation()
get_intersection()
points2equation()
p1 <- c(0, 4) vector_length(p1) p2 <- c(3, 4) vector_length(p1, p2)
Run the code above in your browser using DataLab