public class ThresholdDistanceCheck extends Object implements DistanceCheck
DistanceCheck that tests the distance against a
fixed threshold.| Constructor and Description |
|---|
ThresholdDistanceCheck(double threshold)
Construct with the given threshold for checking the distance.
|
public ThresholdDistanceCheck(double threshold)
threshold - the threshold.public boolean check(double distance)
DistanceCheckcheck in interface DistanceCheckdistance - the distance