public class LatLong
extends java.lang.Object
| Constructor and Description |
|---|
LatLong()
Initializes an instance of the
LatLong class |
LatLong(float latitudeDegrees,
float longitudeDegrees)
Initializes an instance of the
LatLong class |
| Modifier and Type | Method and Description |
|---|---|
float |
DistanceMeters(LatLong latLong)
DistanceMeters
Calculates the distance between the current LatLong and the supplied
LatLong.
|
float |
getLatitude()
Gets latitude of location
|
float |
getLongitude()
Gets longitude of location
|
static boolean |
LatLongEqual(LatLong llA,
LatLong llB)
Determines if two latlongs refer to the same location
|
static boolean |
LatLongNotEqual(LatLong llA,
LatLong llB)
Determines if two latlongs are NOT the same location
|
void |
setLatitude(float latitude)
Sets latitude of location
|
void |
setLongitude(float longitude)
Sets longitude of location
|
public LatLong(float latitudeDegrees,
float longitudeDegrees)
LatLong classlatitudeDegrees - latitude of locationlongitudeDegrees - longitude of locationpublic LatLong()
LatLong classpublic float getLatitude()
public void setLatitude(float latitude)
latitude - the latitude of locationpublic float getLongitude()
public void setLongitude(float longitude)
longitude - the longitude of locationpublic static boolean LatLongEqual(LatLong llA, LatLong llB)
llA - the first locationllB - the second locationpublic static boolean LatLongNotEqual(LatLong llA, LatLong llB)
llA - the first locationllB - the second locationpublic float DistanceMeters(LatLong latLong)
latLong - The remote location to calculate the distance to