GEOS 3.9.1
InteriorPointPoint.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2005-2006 Refractions Research Inc.
7 * Copyright (C) 2001-2002 Vivid Solutions Inc.
8 *
9 * This is free software; you can redistribute and/or modify it under
10 * the terms of the GNU Lesser General Public Licence as published
11 * by the Free Software Foundation.
12 * See the COPYING file for more information.
13 *
14 **********************************************************************/
15
16#ifndef GEOS_ALGORITHM_INTERIORPOINTPOINT_H
17#define GEOS_ALGORITHM_INTERIORPOINTPOINT_H
18
19#include <geos/export.h>
20#include <geos/geom/Coordinate.h>
21
22// Forward declarations
23namespace geos {
24namespace geom {
25class Geometry;
26}
27}
28
29namespace geos {
30namespace algorithm { // geos::algorithm
31
41class GEOS_DLL InteriorPointPoint {
42private:
43
44 bool hasInterior;
45
46 geom::Coordinate centroid;
47
48 double minDistance;
49
50 geom::Coordinate interiorPoint;
51
57 void add(const geom::Geometry* geom);
58
59 void add(const geom::Coordinate* point);
60
61public:
62
64
66
67 bool getInteriorPoint(geom::Coordinate& ret) const;
68
69};
70
71} // namespace geos::algorithm
72} // namespace geos
73
74
75#endif // GEOS_ALGORITHM_INTERIORPOINTPOINT_H
76
Computes a point in the interior of an point geometry.
Definition InteriorPointPoint.h:41
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
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:26