|
JTS Topology Suite - v 1.12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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 Coordinatespublic Coordinate getCentroid()
|
JTS Topology Suite - v 1.12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||