Boost.Geometry    Boost C++ Libraries
Functions
perimeter: calculate perimeter of a geometry

Functions

template<typename Geometry >
default_length_result
< Geometry >::type 
boost::geometry::perimeter (Geometry const &geometry)
 Calculates the perimeter of a geometry. More...
 
template<typename Geometry , typename Strategy >
default_length_result
< Geometry >::type 
boost::geometry::perimeter (Geometry const &geometry, Strategy const &strategy)
 Calculates the perimeter of a geometry using the specified strategy. More...
 

Detailed Description

Function Documentation

template<typename Geometry >
default_length_result<Geometry>::type boost::geometry::perimeter ( Geometry const &  geometry)

Calculates the perimeter of a geometry.

The function perimeter returns the perimeter of a geometry, using the default distance-calculation-strategy

Template Parameters
GeometryAny type fulfilling a Geometry Concept
Parameters
geometryA model of the specified concept
Returns
The calculated perimeter
Examples:
c06_custom_polygon_example.cpp.
template<typename Geometry , typename Strategy >
default_length_result<Geometry>::type boost::geometry::perimeter ( Geometry const &  geometry,
Strategy const &  strategy 
)

Calculates the perimeter of a geometry using the specified strategy.

The function perimeter returns the perimeter of a geometry, using specified strategy

Template Parameters
GeometryAny type fulfilling a Geometry Concept
StrategyAny type fulfilling a distance Strategy Concept
Parameters
geometryA model of the specified concept
strategystrategy to be used for distance calculations.
Returns
The calculated perimeter

April 2, 2011

Copyright © 2007-2011 Barend Gehrels, Amsterdam, the Netherlands
Copyright © 2008-2011 Bruno Lalande, Paris, France
Copyright © 2009-2010 Mateusz Loskot, London, UK
Documentation is generated by Doxygen