Class DistanceApproximation
- java.lang.Object
-
- org.apache.lucene.spatial.geometry.shape.DistanceApproximation
-
@Deprecated public class DistanceApproximation extends Object
Deprecated.This has been replaced with more accurate math inLLRect. This class will be removed in a future release.Imported from mq java client. No changes made.NOTE: This API is still in flux and might change in incompatible ways in the next release.
-
-
Field Summary
Fields Modifier and Type Field Description static doubleKILOMETERS_PER_MILEDeprecated.static doubleMILES_PER_LATITUDEDeprecated.
-
Constructor Summary
Constructors Constructor Description DistanceApproximation()Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description doublegetDistanceSq(double lat, double lng)Deprecated.doublegetDistanceSq(double lat1, double lng1, double lat2, double lng2)Deprecated.static doublegetMilesPerLatDeg()Deprecated.static doublegetMilesPerLngDeg(double lat)Deprecated.voidsetTestPoint(double lat, double lng)Deprecated.
-
-
-
Field Detail
-
MILES_PER_LATITUDE
public static final double MILES_PER_LATITUDE
Deprecated.- See Also:
- Constant Field Values
-
KILOMETERS_PER_MILE
public static final double KILOMETERS_PER_MILE
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
setTestPoint
public void setTestPoint(double lat, double lng)Deprecated.
-
getDistanceSq
public double getDistanceSq(double lat, double lng)Deprecated.
-
getDistanceSq
public double getDistanceSq(double lat1, double lng1, double lat2, double lng2)Deprecated.
-
getMilesPerLngDeg
public static double getMilesPerLngDeg(double lat)
Deprecated.
-
getMilesPerLatDeg
public static double getMilesPerLatDeg()
Deprecated.
-
-