21 #include <geos/export.h> 22 #include <geos/geom/Coordinate.h> 29 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class 71 return intor.getIntersection();
89 getIntersection()
const 99 std::vector<geom::Coordinate> _pts;
107 _intPt = findNearestPoint(centroid, _pts);
112 const std::vector<geom::Coordinate>& pts)
115 std::size_t n = pts.size();
119 for(std::size_t i = 0; i < n; ++i) {
140 const std::vector<geom::Coordinate>& pts)
const 142 double minDistSq = DoubleInfinity;
144 for(std::size_t i = 0, n = pts.size(); i < n; ++i) {
145 double distSq = p.distanceSquared(pts[i]);
146 if(distSq < minDistSq) {
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:216
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25
Computes an approximate intersection of two line segments by taking the most central of the endpoints...
Definition: CentralEndpointIntersector.h:61