The length of each line segment is computed
and the lengths are returned as a numeric vector.
Using squared lengths may be more efficient for some purposes,
for example, to find the length of the shortest segment,
sqrt(min(lengths.psp(x, squared=TRUE)))
is faster than min(lengths.psp(x))
.
The functions lengths.psp
and lengths_psp
are
identical. We recommend using the newer name lengths_psp
.