|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.geometry.iso.util.algorithm2D.CentroidArea2D
public class CentroidArea2D
Computes the centroid of an area geometry.
http://www.faqs.org/faqs/graphics/algorithms-faq/
for further
details of the basic approach.
Constructor Summary | |
---|---|
CentroidArea2D(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
Creates a new Centroid operation |
Method Summary | |
---|---|
void |
add(GeometryImpl geom)
Adds the area defined by a Geometry to the centroid total. |
DirectPositionImpl |
getCentroid()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CentroidArea2D(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
crs
- Method Detail |
---|
public void add(GeometryImpl geom)
geom
- the geometry to addpublic DirectPositionImpl getCentroid()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |