pub fn arc_length(contour: &[(usize, usize)], closed: bool) -> f64Expand description
Compute the arc length (perimeter) of a contour. Computes the perimeter (arc length) of a contour.
Sums the Euclidean distances between consecutive points.
If closed is true, also adds the distance from the last point back to the first.