Class GeometryItemDistance

    • Constructor Detail

      • GeometryItemDistance

        public GeometryItemDistance()
    • Method Detail

      • distance

        public double distance​(ItemBoundable item1,
                               ItemBoundable item2)
        Computes the distance between two Geometry items, using the Geometry.distance(Geometry) method.
        Specified by:
        distance in interface ItemDistance
        Parameters:
        item1 - an item which is a Geometry
        item2 - an item which is a Geometry
        Returns:
        the distance between the geometries
        Throws:
        java.lang.ClassCastException - if either item is not a Geometry