public class IntegerGeoPoint extends java.lang.Object implements GeoPoint
Modifier and Type | Field and Description |
---|---|
private long |
latlon |
private static double |
maxint |
private static double |
upscale |
Constructor and Description |
---|
IntegerGeoPoint(double lat,
double lon) |
IntegerGeoPoint(int lat,
int lon) |
Modifier and Type | Method and Description |
---|---|
double |
accuracyLat()
get the implementation-dependent accuracy of the latitude
|
double |
accuracyLon()
get the implementation-dependent accuracy of the longitude
|
private static int |
coord2int(double coord) |
boolean |
equals(java.lang.Object o)
equality test that is needed to use the class inside HashMap/HashSet
|
int |
hashCode()
compute the hash code of a coordinate
this produces identical hash codes for locations that are close to each other
|
private static double |
int2coord(int z) |
double |
lat()
get the latitude of the point
|
double |
lon()
get the longitude of the point
|
static void |
main(java.lang.String[] args) |
java.lang.String |
toString()
printout format of the point
|
private final long latlon
private static final double maxint
private static final double upscale
public IntegerGeoPoint(double lat, double lon)
public IntegerGeoPoint(int lat, int lon)
public double lat()
GeoPoint
public double lon()
GeoPoint
public double accuracyLat()
accuracyLat
in interface GeoPoint
public double accuracyLon()
accuracyLon
in interface GeoPoint
private static final int coord2int(double coord)
private static final double int2coord(int z)
public int hashCode()
public boolean equals(java.lang.Object o)
public java.lang.String toString()
GeoPoint
public static void main(java.lang.String[] args)