Skip to main content

arc_length

Function arc_length 

Source
pub fn arc_length(contour: &[(usize, usize)], closed: bool) -> f64
Expand 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.