1[/============================================================================ 2 Boost.Geometry (aka GGL, Generic Geometry Library) 3 4 Copyright (c) 2007-2013 Barend Gehrels, Amsterdam, the Netherlands. 5 Copyright (c) 2008-2013 Bruno Lalande, Paris, France. 6 Copyright (c) 2009-2013 Mateusz Loskot, London, UK. 7 8 Use, modification and distribution is subject to the Boost Software License, 9 Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at 10 http://www.boost.org/LICENSE_1_0.txt) 11=============================================================================/] 12 13 14[/ Generated by doxygen_xml2qbk 1.1.1, don't change, will be overwritten automatically] 15[/ Generated from doxy/doxygen_output/xml/classboost_1_1geometry_1_1strategy_1_1centroid_1_1bashein__detmer.xml] 16[section:strategy_centroid_bashein_detmer strategy::centroid::bashein_detmer] 17 18'''<indexterm><primary>strategy</primary></indexterm><indexterm><primary>centroid</primary></indexterm><indexterm><primary>bashein_detmer</primary></indexterm>''' 19Centroid calculation using algorithm Bashein / Detmer. 20 21[heading Description] 22Calculates centroid using triangulation method published by Bashein / Detmer 23 24[heading Synopsis] 25``template<typename Point, typename PointOfSegment, typename CalculationType> 26class strategy::centroid::bashein_detmer 27{ 28 // ... 29}; 30`` 31 32[heading Template parameter(s)] 33[table 34[[Parameter] [Default] [Description]] 35[[typename Point] [] [point type of centroid to calculate ]] 36[[typename PointOfSegment] [Point] [point type of segments, defaults to Point ]] 37[[typename CalculationType] [void] [numeric type for calculation (e.g. high precision); if [*void] then it is extracted automatically from the coordinate type and (if necessary) promoted to floating point]] 38] 39 40[heading Member Function(s)] 41[table 42[[Function] [Description] [Parameters] [Returns]] 43[[``void apply(PointOfSegment const & p1, PointOfSegment const & p2, sums & state)`` 44 45] [] [[* PointOfSegment const &]: ['p1]: 46 47[* PointOfSegment const &]: ['p2]: 48 49[* sums &]: ['state]: 50 51 52 53][ 54 55] 56] 57[[``bool result(sums const & state, Point & centroid)`` 58 59] [] [[* sums const &]: ['state]: 60 61[* Point &]: ['centroid]: 62 63 64 65][ 66 67] 68] 69] 70 71[heading Header] 72`#include <boost/geometry/strategies/cartesian/centroid_bashein_detmer.hpp>` 73 74[heading See also] 75[link geometry.reference.algorithms.centroid.centroid_3_with_strategy centroid (with strategy)] 76 77[endsect] 78 79