Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::geometry::detail::centroid::centroid_multi< Policy > Struct Template Reference

Generic implementation which calls a policy to calculate the centroid of the total of its single-geometries. More...

#include <centroid.hpp>

Inheritance diagram for boost::geometry::detail::centroid::centroid_multi< Policy >:

Static Public Member Functions

template<typename Multi , typename Point , typename Strategy >
static void apply (Multi const &multi, Point &centroid, Strategy const &strategy)
 

Detailed Description

template<typename Policy>
struct boost::geometry::detail::centroid::centroid_multi< Policy >

Generic implementation which calls a policy to calculate the centroid of the total of its single-geometries.

The Policy is, in general, the single-version, with state. So detail::centroid::centroid_polygon_state is used as a policy for this detail::centroid::centroid_multi

Member Function Documentation

template<typename Policy>
template<typename Multi , typename Point , typename Strategy >
static void boost::geometry::detail::centroid::centroid_multi< Policy >::apply ( Multi const &  multi,
Point &  centroid,
Strategy const &  strategy 
)
inlinestatic

The documentation for this struct was generated from the following file: