GEOS 3.9.1
DistanceToPoint.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2009 Sandro Santilli <strk@kbt.io>
7 *
8 * This is free software; you can redistribute and/or modify it under
9 * the terms of the GNU Lesser General Public Licence as published
10 * by the Free Software Foundation.
11 * See the COPYING file for more information.
12 *
13 **********************************************************************
14 *
15 * Last port: algorithm/distance/DistanceToPoint.java 1.1 (JTS-1.9)
16 *
17 **********************************************************************/
18
19#ifndef GEOS_ALGORITHM_DISTANCE_DISTANCETOPOINT_H
20#define GEOS_ALGORITHM_DISTANCE_DISTANCETOPOINT_H
21
22#include <geos/geom/LineSegment.h> // for composition
23
24namespace geos {
25namespace algorithm {
26namespace distance {
27class PointPairDistance;
28}
29}
30namespace geom {
31class Geometry;
32class Coordinate;
33class LineString;
34class Polygon;
35}
36}
37
38namespace geos {
39namespace algorithm { // geos::algorithm
40namespace distance { // geos::algorithm::distance
41
48public:
49
51
52 static void computeDistance(const geom::Geometry& geom,
53 const geom::Coordinate& pt,
54 PointPairDistance& ptDist);
55
56 static void computeDistance(const geom::LineString& geom,
57 const geom::Coordinate& pt,
58 PointPairDistance& ptDist);
59
60 static void computeDistance(const geom::LineSegment& geom,
61 const geom::Coordinate& pt,
62 PointPairDistance& ptDist);
63
64 static void computeDistance(const geom::Polygon& geom,
65 const geom::Coordinate& pt,
66 PointPairDistance& ptDist);
67
68};
69
70} // geos::algorithm::distance
71} // geos::algorithm
72} // geos
73
74#endif // GEOS_ALGORITHM_DISTANCE_DISTANCETOPOINT_H
75
Definition DistanceToPoint.h:47
Definition PointPairDistance.h:37
Coordinate is the lightweight class used to store coordinates.
Definition Coordinate.h:60
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:188
Definition LineSegment.h:59
Definition LineString.h:68
Represents a linear polygon, which may include holes.
Definition Polygon.h:64
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:26