com.metsci.glimpse.util.geo.util

Class SphereUtilFast

• ```public class SphereUtilFast
extends Object```
Author:
moskowitz
• Constructor Summary

Constructors
Constructor and Description
`SphereUtilFast()`
• Method Summary

All Methods
Modifier and Type Method and Description
`static double` ```greatCircleAzimuth(LatLonGeo from, LatLonGeo to)```
Computes the initial azimuth along the shortest great circle path connecting the two specified points.
`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.
`static double` ```greatCircleDistance(LatLonGeo from, LatLonGeo to, double radius)```
Computes the great circle distance between the specified points using the Haversine formula.
`static LatLonGeo` ```greatCircleShift(LatLonGeo from, double radius, double dist, double azimuth)```
Shifts a point along a great circle path.
`static LatLonGeo` ```toLatLonGeo(double x, double y, double z, double radius)```
Transformation from ECEF-r to ECEF-g coordinates.
• Methods inherited from class java.lang.Object

`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`
• Constructor Detail

• SphereUtilFast

`public SphereUtilFast()`
• Method Detail

• 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` - origin
`to` - destination
• toLatLonGeo

```public static LatLonGeo toLatLonGeo(double x,
double y,
double z,
Transformation from ECEF-r to ECEF-g coordinates.
• greatCircleShift

```public static LatLonGeo greatCircleShift(LatLonGeo from,
double dist,
double azimuth)```
Shifts a point along a great circle path.
Parameters:
`from` - starting point
`radius` - radius of Earth
`dist` - distance to shift point
`azimuth` - initial azimuth of great circle
• greatCircleDistance

```public static double greatCircleDistance(LatLonGeo from,
LatLonGeo to,
```public static double greatCircleDistance(double fromLat,