pub fn perimeter<P>(
p: &P,
) -> <CartesianPerimeter as LengthStrategy<P::Ring>>::Outwhere
P: Polygon,
CartesianPerimeter: LengthStrategy<P::Ring>,
<CartesianPerimeter as LengthStrategy<P::Ring>>::Out: Add<Output = <CartesianPerimeter as LengthStrategy<P::Ring>>::Out>,Expand description
Perimeter of a polygon: length of the exterior ring plus the sum of the lengths of the interior rings.
Mirrors boost::geometry::perimeter from
boost/geometry/algorithms/perimeter.hpp.