ItemDistancepublic class GeometryItemDistance extends java.lang.Object implements ItemDistance
Geometrys,
using the Geometry.distance(Geometry) method.| Constructor | Description |
|---|---|
GeometryItemDistance() |
| Modifier and Type | Method | Description |
|---|---|---|
double |
distance(ItemBoundable item1,
ItemBoundable item2) |
Computes the distance between two
Geometry items,
using the Geometry.distance(Geometry) method. |
public double distance(ItemBoundable item1, ItemBoundable item2)
Geometry items,
using the Geometry.distance(Geometry) method.distance in interface ItemDistanceitem1 - an item which is a Geometryitem2 - an item which is a Geometryjava.lang.ClassCastException - if either item is not a GeometryCopyright © 2018. All rights reserved.