T
- the type of the distance function argumentspublic interface DistanceFunction<T>
T
and returns
their distance as a float number.Modifier and Type | Method and Description |
---|---|
float |
getDistance(T o1,
T o2)
Returns the distance between object
o1 and object o2 . |
java.lang.Class<? extends T> |
getDistanceObjectClass()
Returns the type of objects that this distance function accepts as arguments.
|
float getDistance(T o1, T o2)
o1
and object o2
.o1
- the object for which to measure the distanceo2
- the object for which to measure the distanceo1
and object o2
java.lang.Class<? extends T> getDistanceObjectClass()