public class OrthodromicDistance extends Object
| Modifier and Type | Field and Description |
|---|---|
static double |
R |
| Constructor and Description |
|---|
OrthodromicDistance() |
| Modifier and Type | Method and Description |
|---|---|
static double |
getDistance(double lat1,
double long1,
double lat2,
double long2)
Computes the distance between two points on earth Input
latitudes/longitudes are in Radians
|
static double |
getDistanceInDegrees(double lat1,
double long1,
double lat2,
double long2)
Computes the distance between two points on earth Input
latitudes/longitudes by converting their latitude and longitude into
radians.
|
static double |
getDistanceInDegrees(Point x,
Point y)
Computes and returns distance between two points.
|
public static double getDistanceInDegrees(Point x, Point y)
x, - first pointy, - second pointpublic static double getDistanceInDegrees(double lat1,
double long1,
double lat2,
double long2)
lat1, - Latitude of first pointlong1, - Longitude of first pointlat2, - Latitude of second pointlong2, - Longitude of second pointpublic static double getDistance(double lat1,
double long1,
double lat2,
double long2)
lat1, - Latitude of first pointlong1, - Longitude of first pointlat2, - Latitude of second pointlong2, - Longitude of second pointCopyright © 2018. All rights reserved.