I made a little mistake. The formula is 1 - area(shape) / area(circum),
not 1 - area(circum) / area(shape)

2013/1/24 Mathieu Rajerison <mathieu.rajerison@gmail.com>

> Hi,
>
>
> I know spatstat::incircle to calculate the inscribed circle of a shape.
>
> I'd like to know if there was a function to calculate the circumscribing
> circle of a polygon.
>
> The area of this circumscribing circle could then be used to calculate a
> linearity index: 1 - area(circum) / area(shape)
>
> For a triangle, the circumcenter is at the intersection of the different
> perpendicular bisectors of its sides and each corner would be at the same
> distance to this center, distance being known as circumradius.
>
> For a polygon, it seems to me it's a lot more complicated.
>
> It's more a geometrical problem than a spatial one but if anyone has an
> advice, I'd be glad of it..
>
>
> Mathieu
>

	[[alternative HTML version deleted]]

