19 #ifndef GEOS_ALGORITHM_CENTROID_H
20 #define GEOS_ALGORITHM_CENTROID_H
22 #include <geos/export.h>
23 #include <geos/geom/Coordinate.h>
31 class CoordinateSequence;
100 std::unique_ptr<geom::Coordinate> areaBasePt;
125 bool isPositiveArea);
Computes the centroid of a Geometry of any dimension.
Definition: Centroid.h:61
Centroid(const geom::Geometry &geom)
Creates a new instance for computing the centroid of a geometry.
Definition: Centroid.h:79
static bool getCentroid(const geom::Geometry &geom, geom::Coordinate ¢)
Computes the centroid point of a geometry.
bool getCentroid(geom::Coordinate ¢) const
Gets the computed centroid.
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:58
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:60
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:188
Represents a linear polygon, which may include holes.
Definition: Polygon.h:64
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:26