summaryrefslogtreecommitdiff
path: root/boost/geometry/strategies/cartesian/centroid_bashein_detmer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/geometry/strategies/cartesian/centroid_bashein_detmer.hpp')
-rw-r--r--boost/geometry/strategies/cartesian/centroid_bashein_detmer.hpp25
1 files changed, 13 insertions, 12 deletions
diff --git a/boost/geometry/strategies/cartesian/centroid_bashein_detmer.hpp b/boost/geometry/strategies/cartesian/centroid_bashein_detmer.hpp
index 8b42715e0b..f199fb80e5 100644
--- a/boost/geometry/strategies/cartesian/centroid_bashein_detmer.hpp
+++ b/boost/geometry/strategies/cartesian/centroid_bashein_detmer.hpp
@@ -38,17 +38,26 @@ namespace strategy { namespace centroid
/*!
-\brief Centroid calculation using algorith Bashein / Detmer
+\brief Centroid calculation using algorithm Bashein / Detmer
\ingroup strategies
\details Calculates centroid using triangulation method published by
Bashein / Detmer
\tparam Point point type of centroid to calculate
\tparam PointOfSegment point type of segments, defaults to Point
-\par Concepts for Point and PointOfSegment:
-- specialized point_traits class
+\tparam CalculationType \tparam_calculation
+
\author Adapted from "Centroid of a Polygon" by
Gerard Bashein and Paul R. Detmer<em>,
in "Graphics Gems IV", Academic Press, 1994</em>
+
+
+\qbk{
+[heading See also]
+[link geometry.reference.algorithms.centroid.centroid_3_with_strategy centroid (with strategy)]
+}
+*/
+
+/*
\par Research notes
The algorithm gives the same results as Oracle and PostGIS but
differs from MySQL
@@ -100,12 +109,6 @@ Statements:
, mdsys.sdo_dim_array(mdsys.sdo_dim_element('x',0,10,.00000005)
,mdsys.sdo_dim_element('y',0,10,.00000005)))
from dual
-
-\qbk{
-[heading See also]
-[link geometry.reference.algorithms.centroid.centroid_3_with_strategy centroid (with strategy)]
-}
-
*/
template
<
@@ -151,9 +154,7 @@ private :
, sum_a2(calculation_type())
, sum_x(calculation_type())
, sum_y(calculation_type())
- {
- typedef calculation_type ct;
- }
+ {}
};
public :