GEOS  3.9.1dev
Public Member Functions | List of all members
geos::index::strtree::GeometryItemDistance Class Reference

#include <GeometryItemDistance.h>

Inheritance diagram for geos::index::strtree::GeometryItemDistance:
[legend]
Collaboration diagram for geos::index::strtree::GeometryItemDistance:
[legend]

Public Member Functions

double distance (const ItemBoundable *item1, const ItemBoundable *item2) override
 

Detailed Description

Definition at line 28 of file GeometryItemDistance.h.

Member Function Documentation

double geos::index::strtree::GeometryItemDistance::distance ( const ItemBoundable item1,
const ItemBoundable item2 
)
overridevirtual

Computes the distance between two Geometry items, using the Geometry#distance(Geometry) method.

Parameters
item1an item which is a Geometry
item2an item which is a Geometry
Returns
the distance between the geometries
Exceptions
ClassCastExceptionif either item is not a Geometry

Implements geos::index::strtree::ItemDistance.


The documentation for this class was generated from the following file: