public class SphereUtilFast extends Object
Constructor and Description |
---|
SphereUtilFast() |
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.
|
public static double greatCircleAzimuth(LatLonGeo from, LatLonGeo to)
from
- originto
- destinationpublic static LatLonGeo toLatLonGeo(double x, double y, double z, double radius)
public static LatLonGeo greatCircleShift(LatLonGeo from, double radius, double dist, double azimuth)
from
- starting pointradius
- radius of Earthdist
- distance to shift pointazimuth
- initial azimuth of great circlepublic static double greatCircleDistance(LatLonGeo from, LatLonGeo to, double radius)
public static double greatCircleDistance(double fromLat, double fromLon, double toLat, double toLon, double radius)
Copyright © 2016 Metron, Inc.. All rights reserved.