GEOS
3.9.1dev
|
#include <PointPairDistance.h>
Public Member Functions | |
PointPairDistance () | |
void | initialize () |
void | initialize (const geom::Coordinate &p0, const geom::Coordinate &p1) |
double | getDistance () const |
const std::array< geom::Coordinate, 2 > & | getCoordinates () const |
const geom::Coordinate & | getCoordinate (size_t i) const |
void | setMaximum (const PointPairDistance &ptDist) |
void | setMaximum (const geom::Coordinate &p0, const geom::Coordinate &p1) |
void | setMinimum (const PointPairDistance &ptDist) |
void | setMinimum (const geom::Coordinate &p0, const geom::Coordinate &p1) |
bool | getIsNull () |
Private Member Functions | |
void | initialize (const geom::Coordinate &p0, const geom::Coordinate &p1, double distSquared) |
Private Attributes | |
std::array< geom::Coordinate, 2 > | pt |
double | distanceSquared |
bool | isNull |
Contains a pair of points and the distance between them. Provides methods to update with a new point pair with either maximum or minimum distance.
Definition at line 37 of file PointPairDistance.h.
|
inline |
Definition at line 40 of file PointPairDistance.h.
|
inline |
Definition at line 74 of file PointPairDistance.h.
References pt.
|
inline |
Definition at line 68 of file PointPairDistance.h.
References pt.
|
inline |
Definition at line 62 of file PointPairDistance.h.
References distanceSquared.
|
inline |
Definition at line 119 of file PointPairDistance.h.
References isNull.
|
inline |
Definition at line 47 of file PointPairDistance.h.
References isNull.
Referenced by setMaximum(), and setMinimum().
|
inline |
Definition at line 53 of file PointPairDistance.h.
References geos::geom::Coordinate::distanceSquared(), distanceSquared, isNull, and pt.
|
inlineprivate |
Initializes the points, avoiding recomputing the distance.
p0 | |
p1 | |
dist | the distance between p0 and p1 |
Definition at line 133 of file PointPairDistance.h.
References distanceSquared, isNull, and pt.
|
inline |
Definition at line 81 of file PointPairDistance.h.
References pt.
|
inline |
Definition at line 87 of file PointPairDistance.h.
References geos::geom::Coordinate::distanceSquared(), distanceSquared, initialize(), and isNull.
|
inline |
Definition at line 100 of file PointPairDistance.h.
References pt.
|
inline |
Definition at line 106 of file PointPairDistance.h.
References geos::geom::Coordinate::distanceSquared(), distanceSquared, initialize(), and isNull.
|
private |
Definition at line 144 of file PointPairDistance.h.
Referenced by getDistance(), initialize(), setMaximum(), and setMinimum().
|
private |
Definition at line 146 of file PointPairDistance.h.
Referenced by getIsNull(), initialize(), setMaximum(), and setMinimum().
|
private |
Definition at line 142 of file PointPairDistance.h.
Referenced by getCoordinate(), getCoordinates(), initialize(), setMaximum(), and setMinimum().