...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Centroid calculation taking average of points.
template<typename Ignored1, typename Ignored2> class strategy::centroid::average { // ... };
Parameter |
Default |
Description |
---|---|---|
typename Ignored1 |
void |
|
typename Ignored2 |
void |
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: |
#include <boost/geometry/strategies/cartesian/centroid_average.hpp>