DistanceCalculator
trait DistanceCalculator
A type class for distance calculations that can be used for nearest
requests
to an R-tree instances.
class Object
trait Matchable
class Any
Value members
Abstract methods
Returns a positive value for distance from the given point to a bounding box of the specified RTree, or 0 if the point is with in the bounding box.
Returns a positive value for distance from the given point to a bounding box of the specified RTree, or 0 if the point is with in the bounding box.
- Type parameters:
- A
a type of the value being put in the r-tree
- Value parameters:
- t
an RTree instance
- x
x value of the given point
- y
y value of the given point
- Returns:
return a distance value