|
JTS Topology Suite version 1.12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vividsolutions.jts.algorithm.CentroidPoint
public class CentroidPoint
Computes the centroid of a point geometry.
Constructor Summary | |
---|---|
CentroidPoint()
|
Method Summary | |
---|---|
void |
add(Coordinate pt)
Adds the length defined by an array of coordinates. |
void |
add(Geometry geom)
Adds the point(s) 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 CentroidPoint()
Method Detail |
---|
public void add(Geometry geom)
geom
- the geometry to addpublic void add(Coordinate pt)
pts
- an array of Coordinate
spublic Coordinate getCentroid()
|
JTS Topology Suite version 1.12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |