| Home | Libraries | People | FAQ | More

#### strategy::centroid::average

Centroid calculation taking average of points.

###### Synopsis

    template<typename Ignored1, typename Ignored2>
    class strategy::centroid::average
    {
      // ...
    };

###### Template parameter(s)

Parameter | Default | Description
--- | --- | ---
typename Ignored1 | void |
typename Ignored2 | void |

###### Member Function(s)

Function | Description | Parameters | Returns
--- | --- | --- | ---
    template<typename GeometryPoint, typename ResultPoint>
    void apply(GeometryPoint const & p, sum< GeometryPoint, ResultPoint > & state)
|  | GeometryPoint const &: p: sum< GeometryPoint, ResultPoint > &: state: |
    template<typename GeometryPoint, typename ResultPoint>
    bool result(sum< GeometryPoint, ResultPoint > const & state, ResultPoint & centroid)
|  | sum< GeometryPoint, ResultPoint > const &: state: ResultPoint &: centroid: |

###### Header

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