Skip to main content

contour_length

Function contour_length 

Source
pub fn contour_length(points: &[[f64; 2]], closed: bool) -> f64
Expand description

The length of a polyline: the sum of its segment lengths. A closed one also counts the segment from its last point back to its first.