#include <Centroid.h>
Public Member Functions | |
Centroid (const geom::Geometry &geom) | |
bool | getCentroid (geom::Coordinate ¢) const |
Static Public Member Functions | |
static bool | getCentroid (const geom::Geometry &geom, geom::Coordinate ¢) |
http://www.faqs.org/faqs/graphics/algorithms-faq/
for further details of the basic approach. null
Coordinate is returned.
geos::algorithm::Centroid::Centroid | ( | const geom::Geometry & | geom | ) | [inline] |
Creates a new instance for computing the centroid of a geometry
bool geos::algorithm::Centroid::getCentroid | ( | geom::Coordinate & | cent | ) | const |
Gets the computed centroid.
cent | will be set to the centroid point, if any |
static bool geos::algorithm::Centroid::getCentroid | ( | const geom::Geometry & | geom, | |
geom::Coordinate & | cent | |||
) | [static] |
Computes the centroid point of a geometry.
geom | the geometry to use | |
cent | will be set to the centroid point, if any |