org.apache.lucene.spatial.geometry.shape
Class DistanceApproximation
java.lang.Object
org.apache.lucene.spatial.geometry.shape.DistanceApproximation
public class DistanceApproximation
- extends Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MILES_PER_LATITUDE
public static final double MILES_PER_LATITUDE
- See Also:
- Constant Field Values
KILOMETERS_PER_MILE
public static final double KILOMETERS_PER_MILE
- See Also:
- Constant Field Values
DistanceApproximation
public DistanceApproximation()
setTestPoint
public void setTestPoint(double lat,
double lng)
getDistanceSq
public double getDistanceSq(double lat,
double lng)
getDistanceSq
public double getDistanceSq(double lat1,
double lng1,
double lat2,
double lng2)
getMilesPerLngDeg
public static double getMilesPerLngDeg(double lat)
getMilesPerLatDeg
public static double getMilesPerLatDeg()
Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.