get_euclidean_length() is a function that computes the Euclidean
(straight-line) distance of a streamline object.
Arguments
- x
A streamline object.
Examples
pts <- matrix(runif(30), ncol = 3)
colnames(pts) <- c("X", "Y", "Z")
sl <- streamline(points = pts)
get_euclidean_length(sl)
#> [1] 0.8252565