|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jts.algorithm.CentroidArea
Computes the centroid of an area geometry.
http://www.faqs.org/faqs/graphics/algorithms-faq/
for further details of the basic approach.
| Constructor Summary | |
CentroidArea()
|
|
| Method Summary | |
void |
add(Coordinate[] ring)
Adds the area defined by an array of coordinates. |
void |
add(Geometry geom)
Adds the area defined by a Geometry to the centroid total. |
Coordinate |
getCentroid()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CentroidArea()
| Method Detail |
public void add(Geometry geom)
geom - the geometry to addpublic void add(Coordinate[] ring)
ring - an array of Coordinatespublic Coordinate getCentroid()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||