Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::geometry::strategy::centroid::average< PointCentroid, Point > Class Template Reference

Centroid calculation taking average of points. More...

#include <centroid_average.hpp>

Public Types

typedef sum state_type
 
typedef PointCentroid centroid_point_type
 
typedef Point point_type
 

Static Public Member Functions

static void apply (Point const &p, sum &state)
 
static void result (sum const &state, PointCentroid &centroid)
 

Detailed Description

template<typename PointCentroid, typename Point = PointCentroid>
class boost::geometry::strategy::centroid::average< PointCentroid, Point >

Centroid calculation taking average of points.

Member Typedef Documentation

template<typename PointCentroid , typename Point = PointCentroid>
typedef PointCentroid boost::geometry::strategy::centroid::average< PointCentroid, Point >::centroid_point_type
template<typename PointCentroid , typename Point = PointCentroid>
typedef Point boost::geometry::strategy::centroid::average< PointCentroid, Point >::point_type
template<typename PointCentroid , typename Point = PointCentroid>
typedef sum boost::geometry::strategy::centroid::average< PointCentroid, Point >::state_type

Member Function Documentation

template<typename PointCentroid , typename Point = PointCentroid>
static void boost::geometry::strategy::centroid::average< PointCentroid, Point >::apply ( Point const &  p,
sum &  state 
)
inlinestatic
template<typename PointCentroid , typename Point = PointCentroid>
static void boost::geometry::strategy::centroid::average< PointCentroid, Point >::result ( sum const &  state,
PointCentroid &  centroid 
)
inlinestatic

The documentation for this class was generated from the following file: