Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

strategy::centroid::average

Centroid calculation taking average of points.

Synopsis

template<typename PointCentroid, typename Point>
class strategy::centroid::average
{
  // ...
};

Template parameter(s)

Parameter

Default

Description

typename PointCentroid

typename Point

PointCentroid

Member Function(s)

Function

Description

Parameters

Returns

void apply(Point const & p, sum & state)

Point const &: p:

sum &: state:

void result(sum const & state, PointCentroid & centroid)

sum const &: state:

PointCentroid &: centroid:

Header

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


PrevUpHomeNext