Boost.Geometry    Boost C++ Libraries
Classes | Public Types | Static Public Member Functions | List of all members
boost::geometry::strategy::centroid::average< PointCentroid, Point > Class Template Reference

Centroid calculation taking average of points. More...

Public Types

typedef PointCentroid centroid_point_type
 
typedef Point point_type
 
typedef sum state_type
 

Static Public Member Functions

static void apply (Point const &p, sum &state)
 
static bool 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 sum boost::geometry::strategy::centroid::average< PointCentroid, Point >::state_type
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

Member Function Documentation

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

April 2, 2011

Copyright © 2007-2011 Barend Gehrels, Amsterdam, the Netherlands
Copyright © 2008-2011 Bruno Lalande, Paris, France
Copyright © 2009-2010 Mateusz Loskot, London, UK
Documentation is generated by Doxygen