template<typename Point, typename PointOfSegment = Point, typename CalculationType = void>
class boost::geometry::strategy::centroid::bashein_detmer< Point, PointOfSegment, CalculationType >
Centroid calculation using algorithm Bashein / Detmer.
Calculates centroid using triangulation method published by Bashein / Detmer
- Template Parameters
-
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 |
- Author
- Adapted from "Centroid of a Polygon" by Gerard Bashein and Paul R. Detmer, in "Graphics Gems IV", Academic Press, 1994