InteriorPointPoint.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2005-2006 Refractions Research Inc.
* Copyright (C) 2001-2002 Vivid Solutions Inc.
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Public Licence as published
* by the Free Software Foundation.
* See the COPYING file for more information.
*
**********************************************************************/
#pragma once
#include <geos/export.h>
#include <geos/geom/Coordinate.h>
// Forward declarations
namespace geos {
namespace geom {
class Geometry;
}
}
namespace geos {
namespace algorithm { // geos::algorithm
class GEOS_DLL InteriorPointPoint {
private:
bool hasInterior;
geom::CoordinateXY centroid;
double minDistance;
geom::Coordinate interiorPoint;
void add(const geom::Geometry* geom);
void add(const geom::CoordinateXY* point);
public:
InteriorPointPoint(const geom::Geometry* g);
~InteriorPointPoint() {}
bool getInteriorPoint(geom::CoordinateXY& ret) const;
};
} // namespace geos::algorithm
} // namespace geos
geos::geom::Coordinate
Coordinate is the lightweight class used to store coordinates.
Definition Coordinate.h:217
geos::geom::Geometry
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:196
geos::algorithm
Contains classes and interfaces implementing fundamental computational geometry algorithms.
Definition Angle.h:32
geos::geom
Definition Angle.h:26
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38