Centroid constructor

Centroid(
  1. Geometry geom
)

Creates a new instance for computing the centroid of a geometry

Implementation

Centroid(Geometry geom) {
  areaBasePt = null;
  add(geom);
}