public class LatitudeLongitudeConversion extends Object
Constructor and Description |
---|
LatitudeLongitudeConversion() |
Modifier and Type | Method and Description |
---|---|
static double |
direction(double lat1,
double lon1,
double lat2,
double lon2)
Method used to compute the linear distance between two
points specified by latitude and longitude
|
static double |
distance(double lat1,
double lon1,
double lat2,
double lon2)
Method used to compute the linear distance between two
points specified by latitude and longitude
|
static double |
getLatitudeFromX(double geoOriginLatitude,
double x)
Method used to compute the Cartesian X coordinate for a specified latitude
Computed as the arc distance between the latitude and the geo origin latitude
NOTE: This is only an approximation based on a flat earth model and is
valid only for locations relatively close to the geographic origin
|
static double |
getLongitudeFromY(double geoOriginLongitude,
double latitude,
double y)
Method used to compute the Cartesian Y coordinate for a specified longitude
Computed as the arc distance between the longitude and the geo origin
longitude at the specified latitude
NOTE: This is only an approximation based on a flat earth model and is
valid only for locations relatively close to the geographic origin
|
static double |
getXFromLatitude(double geoOriginLatitude,
double latitude)
Method used to compute the Cartesian X coordinate for a specified latitude
Computed as the arc distance between the latitude and the geo origin latitude
NOTE: This is only an approximation based on a flat earth model and is
valid only for locations relatively close to the geographic origin
|
static double |
getYFromLongitude(double geoOriginLongitude,
double latitude,
double longitude)
Method used to compute the Cartesian Y coordinate for a specified longitude
Computed as the arc distance between the longitude and the geo origin
longitude at the specified latitude
NOTE: This is only an approximation based on a flat earth model and is
valid only for locations relatively close to the geographic origin
|
public static double getXFromLatitude(double geoOriginLatitude, double latitude)
geoOriginLatitude
- latitude corresponding to an x value of 0latitude
- latitude whose x coordinate is to be computedpublic static double getLatitudeFromX(double geoOriginLatitude, double x)
geoOriginLatitude
- latitude corresponding to an x value of 0x
- x coordinate whose latitude is to be computedpublic static double getYFromLongitude(double geoOriginLongitude, double latitude, double longitude)
geoOriginLongitude
- longitude corresponding to a y value of 0latitude
- latitude at which the longitude y value is to be computedlongitude
- longitude whose y coordinate is to be computedpublic static double getLongitudeFromY(double geoOriginLongitude, double latitude, double y)
geoOriginLongitude
- longitude corresponding to a y value of 0latitude
- latitude at which the longitude y value is to be computedy
- y coordinate whose longitude is to be computedpublic static double distance(double lat1, double lon1, double lat2, double lon2)
lat1
- lon1
- lat2
- lon2
- public static double direction(double lat1, double lon1, double lat2, double lon2)
lat1
- lon1
- lat2
- lon2
-