21#include <geos/export.h>
22#include <geos/geom/Coordinate.h>
29#pragma warning(disable: 4251)
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) {
Computes an approximate intersection of two line segments by taking the most central of the endpoints...
Definition: CentralEndpointIntersector.h:61
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:58
double y
y-coordinate
Definition: Coordinate.h:81
double x
x-coordinate
Definition: Coordinate.h:78
Basic namespace for all GEOS functionalities.
Definition: geos.h:39