public class GeodeticCalculator extends Object
Implementation of Thaddeus Vincenty's algorithms to solve the direct and inverse geodetic problems.
| Constructor and Description |
|---|
GeodeticCalculator() |
| Modifier and Type | Method and Description |
|---|---|
GlobalCoordinates |
calculateEndingGlobalCoordinates(Ellipsoid ellipsoid,
GlobalCoordinates start,
double startBearing,
double distance)
Calculate the destination after traveling a specified distance, and a
specified starting bearing, for an initial location.
|
GlobalCoordinates |
calculateEndingGlobalCoordinates(Ellipsoid ellipsoid,
GlobalCoordinates start,
double startBearing,
double distance,
double[] endBearing)
Calculate the destination and final bearing after traveling a specified
distance, and a specified starting bearing, for an initial location.
|
GeodeticCurve |
calculateGeodeticCurve(Ellipsoid ellipsoid,
GlobalCoordinates start,
GlobalCoordinates end)
Calculate the geodetic curve between two points on a specified reference
ellipsoid.
|
GeodeticMeasurement |
calculateGeodeticMeasurement(Ellipsoid refEllipsoid,
GlobalPosition start,
GlobalPosition end)
Calculate the three dimensional geodetic measurement between two
positions measured in reference to a specified ellipsoid.
|
public GlobalCoordinates calculateEndingGlobalCoordinates(Ellipsoid ellipsoid, GlobalCoordinates start, double startBearing, double distance, double[] endBearing)
ellipsoid - reference ellipsoid to usestart - starting locationstartBearing - starting bearing (degrees)distance - distance to travel (meters)endBearing - bearing at destination (degrees) element at index 0 will be
populated with the resultpublic GlobalCoordinates calculateEndingGlobalCoordinates(Ellipsoid ellipsoid, GlobalCoordinates start, double startBearing, double distance)
ellipsoid - reference ellipsoid to usestart - starting locationstartBearing - starting bearing (degrees)distance - distance to travel (meters)public GeodeticCurve calculateGeodeticCurve(Ellipsoid ellipsoid, GlobalCoordinates start, GlobalCoordinates end)
ellipsoid - reference ellipsoid to usestart - starting coordinatesend - ending coordinatespublic GeodeticMeasurement calculateGeodeticMeasurement(Ellipsoid refEllipsoid, GlobalPosition start, GlobalPosition end)
Calculate the three dimensional geodetic measurement between two positions measured in reference to a specified ellipsoid.
This calculation is performed by first computing a new ellipsoid by expanding or contracting the reference ellipsoid such that the new ellipsoid passes through the average elevation of the two positions. A geodetic curve across the new ellisoid is calculated. The point-to-point distance is calculated as the hypotenuse of a right triangle where the length of one side is the ellipsoidal distance and the other is the difference in elevation.
refEllipsoid - reference ellipsoid to usestart - starting positionend - ending positionCopyright © 2016. All rights reserved.