GEOS  3.9.1dev
DistanceToPoint.h
Go to the documentation of this file.
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 
24 namespace geos {
25 namespace algorithm {
26 namespace distance {
27 class PointPairDistance;
28 }
29 }
30 namespace geom {
31 class Geometry;
32 class Coordinate;
33 class LineString;
34 class Polygon;
35 }
36 }
37 
38 namespace geos {
39 namespace algorithm { // geos::algorithm
40 namespace distance { // geos::algorithm::distance
41 
48 public:
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 
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
Represents a linear polygon, which may include holes.
Definition: Polygon.h:64
Basic namespace for all GEOS functionalities.