Package com.metsci.glimpse.util.geo.util
Class SphereUtil
- java.lang.Object
-
- com.metsci.glimpse.util.geo.util.SphereUtil
-
public class SphereUtil extends Object
- Author:
- osborn
-
-
Constructor Summary
Constructors Constructor Description SphereUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static doublegreatCircleAzimuth(LatLonGeo from, LatLonGeo to)Computes the initial azimuth along the shortest great circle path connecting the two specified points.static doublegreatCircleDistance(double fromLat, double fromLon, double toLat, double toLon, double radius)Computes the great circle distance between the specified points using the Haversine formula.static doublegreatCircleDistance(LatLonGeo from, LatLonGeo to, double radius)Computes the great circle distance between the specified points using the Haversine formula.static LatLonGeogreatCircleShift(LatLonGeo from, double radius, double dist, double azimuth)Shifts a point along a great circle path.static LatLonGeotoLatLonGeo(double x, double y, double z, double radius)Transformation from ECEF-r to ECEF-g coordinates.static LatLonRecttoLatLonRect(double northLatRad, double eastLonRad, double altitude, double radius)Transformation from ECEF-g to ECEF-r coordinates.
-
-
-
Method Detail
-
greatCircleDistance
public static double greatCircleDistance(LatLonGeo from, LatLonGeo to, double radius)
Computes the great circle distance between the specified points using the Haversine formula.
-
greatCircleDistance
public static double greatCircleDistance(double fromLat, double fromLon, double toLat, double toLon, double radius)Computes the great circle distance between the specified points using the Haversine formula.
-
greatCircleAzimuth
public static double greatCircleAzimuth(LatLonGeo from, LatLonGeo to)
Computes the initial azimuth along the shortest great circle path connecting the two specified points.- Parameters:
from- originto- destination
-
toLatLonGeo
public static LatLonGeo toLatLonGeo(double x, double y, double z, double radius)
Transformation from ECEF-r to ECEF-g coordinates.
-
toLatLonRect
public static LatLonRect toLatLonRect(double northLatRad, double eastLonRad, double altitude, double radius)
Transformation from ECEF-g to ECEF-r coordinates.
-
-