V
- Vector typepublic interface SpatialPrimitiveDoubleDistanceFunction<V extends SpatialComparable> extends SpatialPrimitiveDistanceFunction<V,DoubleDistance>, PrimitiveDoubleDistanceFunction<V>
Modifier and Type | Method and Description |
---|---|
double |
doubleCenterDistance(SpatialComparable mbr1,
SpatialComparable mbr2)
Computes the distance between the centroids of the two given MBRs
according to this distance function.
|
double |
doubleMinDist(SpatialComparable mbr1,
SpatialComparable mbr2)
Computes the distance between the two given MBRs according to this
distance function.
|
centerDistance, instantiate, minDist
doubleDistance
distance, getInputTypeRestriction
getDistanceFactory, isMetric, isSymmetric
double doubleMinDist(SpatialComparable mbr1, SpatialComparable mbr2)
mbr1
- the first MBR objectmbr2
- the second MBR objectdouble doubleCenterDistance(SpatialComparable mbr1, SpatialComparable mbr2)
mbr1
- the first MBR objectmbr2
- the second MBR object