GEOS  3.9.1dev
Public Member Functions | Private Member Functions | Private Attributes | List of all members
geos::algorithm::InteriorPointPoint Class Reference

Computes a point in the interior of an point geometry. More...

#include <InteriorPointPoint.h>

Collaboration diagram for geos::algorithm::InteriorPointPoint:
[legend]

Public Member Functions

 InteriorPointPoint (const geom::Geometry *g)
 
 ~InteriorPointPoint ()
 
bool getInteriorPoint (geom::Coordinate &ret) const
 

Private Member Functions

void add (const geom::Geometry *geom)
 
void add (const geom::Coordinate *point)
 

Private Attributes

bool hasInterior
 
geom::Coordinate centroid
 
double minDistance
 
geom::Coordinate interiorPoint
 

Detailed Description

Computes a point in the interior of an point geometry.

Algorithm:

Find a point which is closest to the centroid of the geometry.

Definition at line 41 of file InteriorPointPoint.h.

Constructor & Destructor Documentation

geos::algorithm::InteriorPointPoint::InteriorPointPoint ( const geom::Geometry g)
geos::algorithm::InteriorPointPoint::~InteriorPointPoint ( )
inline

Definition at line 65 of file InteriorPointPoint.h.

Member Function Documentation

void geos::algorithm::InteriorPointPoint::add ( const geom::Geometry geom)
private

Tests the point(s) defined by a Geometry for the best inside point. If a Geometry is not of dimension 0 it is not tested.

Parameters
geomthe geometry to add
void geos::algorithm::InteriorPointPoint::add ( const geom::Coordinate point)
private
bool geos::algorithm::InteriorPointPoint::getInteriorPoint ( geom::Coordinate ret) const

Member Data Documentation

geom::Coordinate geos::algorithm::InteriorPointPoint::centroid
private

Definition at line 46 of file InteriorPointPoint.h.

bool geos::algorithm::InteriorPointPoint::hasInterior
private

Definition at line 44 of file InteriorPointPoint.h.

geom::Coordinate geos::algorithm::InteriorPointPoint::interiorPoint
private

Definition at line 50 of file InteriorPointPoint.h.

double geos::algorithm::InteriorPointPoint::minDistance
private

Definition at line 48 of file InteriorPointPoint.h.


The documentation for this class was generated from the following file: