T - The node typepublic class DistanceResult<T> extends Object
| Constructor and Description |
|---|
DistanceResult(T t,
double dist)
Create a new DistanceResult with a given object and distance
|
public DistanceResult(T t, double dist)
t - the object we are measuring the distance todist - the actual distance to the objectpublic T get()
public double getDistance()