pub fn eccentricity(polygon: Polygon<'_>) -> f64
Expand description

Compute the eccentricity of the related elipse of a polygon

use geometric_features::{related_ellipse::eccentricity, Point, Polygon};
let polygon: Vec<(f64,f64)> = vec![
    ( 8.04,  2.68),
    ( 5.4,   4.4 ),
    ( 6.1,   6.5 ),
    ( 9.24,  6.22),
    (12.12,  5.26),
    ( 9.86,  4.38),
    ( 10.0,  2.42),
    ( 8.86,  4.14)
];
assert_eq!(eccentricity(&polygon), 0.26249954212114796);