| Home | Libraries | People | FAQ | More

#### strategy::centroid::bashein_detmer

Centroid calculation using algorith Bashein / Detmer.

###### Description

Calculates centroid using triangulation method published by Bashein / Detmer

Statements:

With holes:

Statements:

###### Synopsis

    template<typename Point, typename PointOfSegment, typename CalculationType>
    class strategy::centroid::bashein_detmer
    {
      // ...
    };

###### Template parameter(s)

Parameter | Default | Description
--- | --- | ---
typename Point |  | point type of centroid to calculate
typename PointOfSegment | Point | point type of segments, defaults to Point
typename CalculationType | void |

###### Member Function(s)

Function | Description | Parameters | Returns
--- | --- | --- | ---
    void apply(PointOfSegment const & p1, PointOfSegment const & p2, sums & state)
|  | PointOfSegment const &: p1: PointOfSegment const &: p2: sums &: state:
    bool result(sums const & state, Point & centroid)
|  | sums const &: state: Point &: centroid:

###### Header

`#include <boost/geometry/strategies/cartesian/centroid_bashein_detmer.hpp>`

###### See also

centroid (with strategy)