20 #ifndef GEOS_ALGORITHM_CENTRALENDPOINTINTERSECTOR_H
21 #define GEOS_ALGORITHM_CENTRALENDPOINTINTERSECTOR_H
23 #include <geos/export.h>
24 #include <geos/geom/Coordinate.h>
31 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
72 return intor.getIntersection();
99 std::vector<geom::Coordinate> _pts;
106 _intPt = findNearestPoint(centroid, _pts);
110 const std::vector<geom::Coordinate>& pts)
113 size_t n = pts.size();
114 if ( ! n )
return avg;
115 for (std::size_t i=0; i<n; ++i)
136 const std::vector<geom::Coordinate>& pts)
const
138 double minDist = std::numeric_limits<double>::max();
140 for (std::size_t i = 0, n=pts.size(); i < n; ++i) {
142 if (dist < minDist) {
158 #endif // GEOS_ALGORITHM_CENTRALENDPOINTINTERSECTOR_H