GEOS 3.6.2
geos::algorithm::CentroidPoint Class Reference

#include <CentroidPoint.h>

Public Member Functions

void add (const geom::Geometry *geom)
void add (const geom::Coordinate *pt)
geom::CoordinategetCentroid () const
bool getCentroid (geom::Coordinate &ret) const
 Return false if centroid could not be computed.

Detailed Description

Deprecated
use Centroid instead

Member Function Documentation

◆ add()

void geos::algorithm::CentroidPoint::add ( const geom::Geometry * geom)

Adds the point(s) defined by a Geometry to the centroid total. If the geometry is not of dimension 0 it does not contribute to the centroid.

Parameters
geomthe geometry to add

References add().

Referenced by add().


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