Skip to main content

perimeter

Function perimeter 

Source
pub fn perimeter<P>(
    p: &P,
) -> <DefaultPerimeterStrategy<P> 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:230-236.