19 #ifndef GEOS_ALGORITHM_DISTANCE_POINTPAIRDISTANCE_H
20 #define GEOS_ALGORITHM_DISTANCE_POINTPAIRDISTANCE_H
22 #include <geos/platform.h>
23 #include <geos/geom/Coordinate.h>
44 distance(DoubleNotANumber),
47 assert(pt.size() == 2);
63 double getDistance()
const
68 const std::vector<geom::Coordinate>& getCoordinates()
const
81 setMaximum(ptDist.pt[0], ptDist.pt[1]);
92 initialize(p0, p1, dist);
97 setMinimum(ptDist.pt[0], ptDist.pt[1]);
108 initialize(p0, p1, dist);
128 std::vector<geom::Coordinate> pt;
139 #endif // GEOS_ALGORITHM_DISTANCE_POINTPAIRDISTANCE_H
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:60
Definition: PointPairDistance.h:37
double distance(const Coordinate &p) const