public class GeoPoint extends Object implements IGeoPoint, MathConstants, GeoConstants, android.os.Parcelable, Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<GeoPoint> |
CREATOR |
DEG2RAD, PI, PI_2, PI_4, RAD2DEG
EQUATORCIRCUMFENCE, FEET_PER_METER, METERS_PER_NAUTICAL_MILE, METERS_PER_STATUTE_MILE, RADIUS_EARTH_METERS
Constructor and Description |
---|
GeoPoint(double aLatitude,
double aLongitude) |
GeoPoint(double aLatitude,
double aLongitude,
double aAltitude) |
GeoPoint(GeoPoint aGeopoint) |
GeoPoint(int aLatitudeE6,
int aLongitudeE6) |
GeoPoint(int aLatitudeE6,
int aLongitudeE6,
int aAltitude) |
GeoPoint(android.location.Location aLocation) |
Modifier and Type | Method and Description |
---|---|
double |
bearingTo(IGeoPoint other) |
GeoPoint |
clone() |
int |
describeContents() |
GeoPoint |
destinationPoint(double aDistanceInMeters,
float aBearingInDegrees)
Calculate a point that is the specified distance and bearing away from this point.
|
int |
distanceTo(IGeoPoint other) |
boolean |
equals(Object obj) |
static GeoPoint |
fromCenterBetween(GeoPoint geoPointA,
GeoPoint geoPointB) |
static GeoPoint |
fromDoubleString(String s,
char spacer) |
static GeoPoint |
fromIntString(String s) |
static GeoPoint |
fromInvertedDoubleString(String s,
char spacer) |
int |
getAltitude() |
double |
getLatitude() |
int |
getLatitudeE6() |
double |
getLongitude() |
int |
getLongitudeE6() |
int |
hashCode() |
void |
setAltitude(int aAltitude) |
void |
setCoordsE6(int aLatitudeE6,
int aLongitudeE6) |
void |
setLatitudeE6(int aLatitudeE6) |
void |
setLongitudeE6(int aLongitudeE6) |
String |
toDoubleString() |
String |
toInvertedDoubleString() |
String |
toString() |
void |
writeToParcel(android.os.Parcel out,
int flags) |
public static final android.os.Parcelable.Creator<GeoPoint> CREATOR
public GeoPoint(int aLatitudeE6, int aLongitudeE6)
public GeoPoint(int aLatitudeE6, int aLongitudeE6, int aAltitude)
public GeoPoint(double aLatitude, double aLongitude)
public GeoPoint(double aLatitude, double aLongitude, double aAltitude)
public GeoPoint(android.location.Location aLocation)
public GeoPoint(GeoPoint aGeopoint)
public int getLongitudeE6()
getLongitudeE6
in interface IGeoPoint
public int getLatitudeE6()
getLatitudeE6
in interface IGeoPoint
public double getLongitude()
getLongitude
in interface IGeoPoint
public double getLatitude()
getLatitude
in interface IGeoPoint
public int getAltitude()
public void setLongitudeE6(int aLongitudeE6)
public void setLatitudeE6(int aLatitudeE6)
public void setAltitude(int aAltitude)
public void setCoordsE6(int aLatitudeE6, int aLongitudeE6)
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel out, int flags)
writeToParcel
in interface android.os.Parcelable
public int distanceTo(IGeoPoint other)
public double bearingTo(IGeoPoint other)
public GeoPoint destinationPoint(double aDistanceInMeters, float aBearingInDegrees)
public String toDoubleString()
public String toInvertedDoubleString()
Copyright © 2015. All Rights Reserved.