Class VincentyUtils

java.lang.Object
org.episteme.natural.earth.geophysics.VincentyUtils

public class VincentyUtils extends Object
High-precision geodesy calculations on the WGS-84 ellipsoid using Vincenty's formulae.

Based on: T. Vincenty, "Direct and Inverse Solutions of Geodesics on the Ellipsoid with Application of Nested Equations", Survey Review, Vol. 23, No. 176, pp. 88-93, April 1975. DOI: 10.1179/sre.1975.23.176.88

Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Method Details

    • distance

      public static double distance(Quantity<Angle> lat1, Quantity<Angle> lon1, Quantity<Angle> lat2, Quantity<Angle> lon2)
      Calculates the distance between two points on the ellipsoid.
      Parameters:
      lat1 - Latitude 1
      lon1 - Longitude 1
      lat2 - Latitude 2
      lon2 - Longitude 2
      Returns:
      Distance in meters
    • destination

      public static double[] destination(double lat1, double lon1, double brng, double dist)
      Calculates the destination point given start point, initial bearing and distance.
      Returns:
      double[] {lat, lon} in Radians