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 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>


PrevUpHomeNext