GEOS 3.11.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#pragma once
20
21#include <geos/geom/LineSegment.h> // for composition
22
23namespace geos {
24namespace algorithm {
25namespace distance {
26class PointPairDistance;
27}
28}
29namespace geom {
30class Geometry;
31class Coordinate;
32class LineString;
33class Polygon;
34}
35}
36
37namespace geos {
38namespace algorithm { // geos::algorithm
39namespace distance { // geos::algorithm::distance
40
47public:
48
50
51 static void computeDistance(const geom::Geometry& geom,
52 const geom::Coordinate& pt,
53 PointPairDistance& ptDist);
54
55 static void computeDistance(const geom::LineString& geom,
56 const geom::Coordinate& pt,
57 PointPairDistance& ptDist);
58
59 static void computeDistance(const geom::LineSegment& geom,
60 const geom::Coordinate& pt,
61 PointPairDistance& ptDist);
62
63 static void computeDistance(const geom::Polygon& geom,
64 const geom::Coordinate& pt,
65 PointPairDistance& ptDist);
66
67};
68
69} // geos::algorithm::distance
70} // geos::algorithm
71} // geos
72
Definition: DistanceToPoint.h:46
Definition: PointPairDistance.h:36
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:58
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:186
Definition: LineSegment.h:60
Definition: LineString.h:66
Represents a linear polygon, which may include holes.
Definition: Polygon.h:61
Basic namespace for all GEOS functionalities.
Definition: geos.h:39