public interface NearbyDistanceMeter<O,D>
Modifier and Type | Method and Description |
---|---|
double |
getNearbyDistance(O origin,
D destination)
Measures the distance from the origin to the destination.
|
double getNearbyDistance(O origin, D destination)
Distances can be asymmetrical: the distance from an origin to a destination often differs from the distance from that destination to that origin.
origin
- never nulldestination
- never null>= 0.0
. If origin == destination, it usually returns 0.0.Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.