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

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
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:

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

sum const &: state:

PointCentroid &: centroid:

Header

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


PrevUpHomeNext