get_curvilinear_length() is a function that computes the total arc-length
of a streamline object as the sum of Euclidean segment lengths between
consecutive points.
Arguments
- x
A streamline object.
Examples
sl <- streamline(points = cbind(X = runif(10), Y = runif(10), Z = runif(10)))
get_curvilinear_length(sl)
#> [1] 5.805339
