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[] ring)
Deprecated.
Adds the area defined by an array of
coordinates.
|
void |
add(Geometry geom)
Deprecated.
Adds the area defined by a Geometry to the centroid total.
|
Coordinate |
getCentroid()
Deprecated.
|
public void add(Geometry geom)
geom - the geometry to addpublic void add(Coordinate[] ring)
ring - an array of Coordinatespublic Coordinate getCentroid()
Copyright © 2015. All rights reserved.