boost::geometry::strategy::centroid::bashein_detmer
centroid_bashein_detmer.hpp
boost::geometry::strategy::centroid::bashein_detmer::sums
typename Point
typename PointOfSegment Point
typename CalculationType void
boost::mpl::if_c< boost::is_void< CalculationType >::type::value, typename select_most_precise< typename select_coordinate_type< Point, PointOfSegment >::type, double >::type, CalculationType >::type typedef boost::mpl::if_c< boost::is_void<CalculationType>::type::value, typename select_most_precise < typename select_coordinate_type < Point, PointOfSegment >::type, double >::type, CalculationType >::type boost::geometry::strategy::centroid::bashein_detmer< Point, PointOfSegment, CalculationType >::calculation_type calculation_type
sums typedef sums boost::geometry::strategy::centroid::bashein_detmer< Point, PointOfSegment, CalculationType >::state_type state_type
void static void boost::geometry::strategy::centroid::bashein_detmer< Point, PointOfSegment, CalculationType >::apply (PointOfSegment const &p1, PointOfSegment const &p2, sums &state) apply PointOfSegment const & p1 PointOfSegment const & p2 sums & state
bool static bool boost::geometry::strategy::centroid::bashein_detmer< Point, PointOfSegment, CalculationType >::result (sums const &state, Point &centroid) result sums const & state Point & centroid

Centroid calculation using algorithm Bashein / Detmer.

Calculates centroid using triangulation method published by Bashein / Detmer Point

point type of centroid to calculate

PointOfSegment

point type of segments, defaults to Point

CalculationType

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

Adapted from "Centroid of a Polygon" by Gerard Bashein and Paul R. Detmer, in "Graphics Gems IV", Academic Press, 1994

[heading See also] [link geometry.reference.algorithms.centroid.centroid_3_with_strategy centroid (with strategy)]
- boost::geometry::strategy::centroid::bashein_detmer
  apply
- boost::geometry::strategy::centroid::bashein_detmer
  calculation_type
- boost::geometry::strategy::centroid::bashein_detmer
  result
- boost::geometry::strategy::centroid::bashein_detmer
  state_type