GEOS 3.11.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#pragma once
17
18#include <geos/export.h>
19#include <geos/geom/Coordinate.h>
20
21// Forward declarations
22namespace geos {
23namespace geom {
24class Geometry;
25}
26}
27
28namespace geos {
29namespace algorithm { // geos::algorithm
30
40class GEOS_DLL InteriorPointPoint {
41private:
42
43 bool hasInterior;
44
45 geom::Coordinate centroid;
46
47 double minDistance;
48
49 geom::Coordinate interiorPoint;
50
56 void add(const geom::Geometry* geom);
57
58 void add(const geom::Coordinate* point);
59
60public:
61
63
65
66 bool getInteriorPoint(geom::Coordinate& ret) const;
67
68};
69
70} // namespace geos::algorithm
71} // namespace geos
72
73
Computes a point in the interior of an point geometry.
Definition: InteriorPointPoint.h:40
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
Basic namespace for all GEOS functionalities.
Definition: geos.h:39