public class GeometryItemDistance extends Object implements ItemDistance
Geometrys,
using the Geometry.distance(Geometry) method.| Constructor and Description |
|---|
GeometryItemDistance() |
| Modifier and Type | Method and 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 GeometryClassCastException - if either item is not a GeometryCopyright © 2019. All rights reserved.