public class CentroidArea extends Object
http://www.faqs.org/faqs/graphics/algorithms-faq/ for further details of the basic approach. The code has also be extended to handle degenerate (zero-area) polygons. In this case, the centroid of the line segments in the polygon will be returned.
| Constructor and Description |
|---|
CentroidArea()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Coordinate
Deprecated.
Adds the area defined by an array of coordinates.
|
void |
add(Geometry
Deprecated.
Adds the area defined by a Geometry to the centroid total.
|
Coordinate |
getCentroid()
Deprecated.
|
public void add(Geometrygeom)
geom - the geometry to add
public void add(Coordinate[] ring)
ring - an array of
Coordinates
public CoordinategetCentroid()