...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 PointCentroid, typename Point> class strategy::centroid::average { // ... };
Parameter |
Default |
Description |
---|---|---|
typename PointCentroid |
||
typename Point |
PointCentroid |
Function |
Description |
Parameters |
Returns |
---|---|---|---|
void apply(Point const & p, sum & state)
|
Point const &: p: sum &: state: |
||
bool result(sum const & state, PointCentroid & centroid)
|
sum const &: state: PointCentroid &: centroid: |
#include <boost/geometry/strategies/cartesian/centroid_average.hpp>