tams.eccentricity

Contents

tams.eccentricity#

tams.eccentricity(p)#

Compute the (first) eccentricity of the least-squares best-fit ellipse to the coordinates of the polygon’s exterior.

Changed in version 0.2.0: Renamed from calc_ellipse_eccen().

See also

fit_ellipse

Parameters:

p (shapely.Polygon)

Return type:

float