19 #ifndef GEOS_ALGORITHM_CENTRALENDPOINTINTERSECTOR_H 20 #define GEOS_ALGORITHM_CENTRALENDPOINTINTERSECTOR_H 22 #include <geos/export.h> 23 #include <geos/geom/Coordinate.h> 30 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class 71 return intor.getIntersection();
98 std::vector<geom::Coordinate> _pts;
105 _intPt = findNearestPoint(centroid, _pts);
109 const std::vector<geom::Coordinate>& pts)
112 size_t n = pts.size();
113 if ( ! n )
return avg;
114 for (std::size_t i=0; i<n; ++i)
135 const std::vector<geom::Coordinate>& pts)
const 137 double minDist = std::numeric_limits<double>::max();
139 for (std::size_t i = 0, n=pts.size(); i < n; ++i) {
141 if (dist < minDist) {
157 #endif // GEOS_ALGORITHM_CENTRALENDPOINTINTERSECTOR_H double y
y-coordinate
Definition: Coordinate.h:83
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:60
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
Computes an approximate intersection of two line segments by taking the most central of the endpoints...
Definition: CentralEndpointIntersector.h:62
double distance(const Coordinate &p) const
double x
x-coordinate
Definition: Coordinate.h:80