Computes the length of each line segment in a line segment pattern.
A line segment pattern (object of class
Logical value indicating whether to return
the squared lengths (
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,
is faster than
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.