distance

fun distance(fromElement: SpatialElementIfc, toElement: SpatialElementIfc): Double

Computes the distance between fromElement and toElement based on the spatial model's distance metric

Return

the distance between the two elements


abstract fun distance(fromLocation: LocationIfc, toLocation: LocationIfc): Double

Computes the distance between fromLocation and toLocation based on the spatial model's distance metric

Return

the distance between the two locations