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