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_polygon_state Struct Reference

Centroid of a polygon. More...

#include <centroid.hpp>

Static Public Member Functions

template<typename Polygon , typename PointTransformer , typename Strategy >
static void apply (Polygon const &poly, PointTransformer const &transformer, Strategy const &strategy, typename Strategy::state_type &state)
 

Detailed Description

Centroid of a polygon.

Note
Because outer ring is clockwise, inners are counter clockwise, triangle approach is OK and works for polygons with rings.

Member Function Documentation

template<typename Polygon , typename PointTransformer , typename Strategy >
static void boost::geometry::detail::centroid::centroid_polygon_state::apply ( Polygon const &  poly,
PointTransformer const &  transformer,
Strategy const &  strategy,
typename Strategy::state_type &  state 
)
inlinestatic

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