public class GeoPoint
extends java.lang.Object
Constructor and Description |
---|
GeoPoint(int latitudeE6,
int longitudeE6)
Constructs a GeoPoint with the given latitude and longitude,
measured in microdegrees (degrees * 1E6).
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object) |
int |
getLatitudeE6()
Returns the latitude of this GeoPoint in microdegrees (degrees * 1E6).
|
int |
getLongitudeE6()
Returns the longitude of this GeoPoint in microdegrees (degrees * 1E6).
|
int |
hashCode() |
java.lang.String |
toString() |
public GeoPoint(int latitudeE6, int longitudeE6)
latitudeE6
- The point's latitude. This will be clamped
to between -80 degrees and +80 degrees inclusive, in order to
maintain accuracy in the Mercator projection.longitudeE6
- The point's longitude. This will be
normalized to be greater than -180 degrees and less than or
equal to +180 degrees.public int getLatitudeE6()
public int getLongitudeE6()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object