public class GeometryItemDistance extends Objectimplements ItemDistance
Geometrys, using the
Geometry.distance(Geometry) method.
| Constructor and Description |
|---|
GeometryItemDistance()
|
| Modifier and Type | Method and Description |
|---|---|
double |
distance(ItemBoundable
Computes the distance between two
Geometry items, using the
Geometry method.
|
public double distance(ItemBoundableitem1, ItemBoundable item2)
Geometry items, using the
Geometry.distance(Geometry) method.
distance in interface
ItemDistance
item1 - an item which is a Geometry
item2 - an item which is a Geometry
ClassCastException - if either item is not a Geometry