public class CentroidIndex extends PolygonIndex
| Modifier and Type | Class and Description |
|---|---|
class |
CentroidIndex.Circle |
| Modifier and Type | Field and Description |
|---|---|
Map<String,CentroidIndex.Circle> |
centroids |
static boolean |
USE_GREAT_ELLIPTIC_DISTANCE |
computations, distanceIndex, polygonIndex| Constructor and Description |
|---|
CentroidIndex() |
| Modifier and Type | Method and Description |
|---|---|
Point |
average(Point source,
Point target) |
double |
distance(Point x,
Point y) |
void |
index(Polygon p)
Indexes the distances between the points in a given polygon and adds
polygon to list of indexes
|
getDistance, index, toStringpublic static boolean USE_GREAT_ELLIPTIC_DISTANCE
public Map<String,CentroidIndex.Circle> centroids
public double distance(Point x, Point y)
x - Point xy - Point ypublic void index(Polygon p)
PolygonIndexindex in class PolygonIndexp - Input polygonCopyright © 2018. All rights reserved.