Class AbstractDistanceCalculator
java.lang.Object
org.locationtech.spatial4j.distance.AbstractDistanceCalculator
- All Implemented Interfaces:
DistanceCalculator
- Direct Known Subclasses:
CartesianDistCalc
,GeodesicSphereDistCalc
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.locationtech.spatial4j.distance.DistanceCalculator
area, area, calcBoxByDistFromPt, calcBoxByDistFromPt_yHorizAxisDEG, distance, pointOnBearing
-
Constructor Details
-
AbstractDistanceCalculator
public AbstractDistanceCalculator()
-
-
Method Details
-
distance
Description copied from interface:DistanceCalculator
The distance betweenfrom
andto
.- Specified by:
distance
in interfaceDistanceCalculator
-
within
Description copied from interface:DistanceCalculator
Returns true if the distance between from and to is <= distance.- Specified by:
within
in interfaceDistanceCalculator
-
toString
-