Class Geocentric

java.lang.Object
edu.sc.seis.TauP.Geocentric

public class Geocentric extends Object
GeoCentric, modified from geocentric.cpp \file Geocentric.cpp \brief Implementation for GeographicLib::Geocentric class Copyright (c) Charles Karney (2008-2022) <karney@alum.mit.edu> and licensed under the MIT/X11 License. For more information, see https://geographiclib.sourceforge.io/
  • Constructor Details

    • Geocentric

      public Geocentric(net.sf.geographiclib.Geodesic geodesic)
    • Geocentric

      public Geocentric(double a, double f)
  • Method Details

    • WGS84

      public static final Geocentric WGS84()
    • SPHERE

      public static final Geocentric SPHERE(double radius)
    • IntForward

      public List<Double> IntForward(double lat, double lon, double h, boolean M)
    • IntReverse

      public List<Double> IntReverse(double X, double Y, double Z, boolean M)
    • angleBetweenRadian

      public double angleBetweenRadian(double[] v1, double[] v2)
    • angleBetweenRadian

      public double angleBetweenRadian(double latA, double lonA, double hA, double latB, double lonB, double hB)
    • angleBetweenDeg

      public double angleBetweenDeg(double latA, double lonA, double hA, double latB, double lonB, double hB)
    • azimuth

      public double azimuth(double latA, double lonA, double hA, double latB, double lonB, double hB)
      Azimuth from point A to point B. Converts to geocentric xyz taking ellipticity into account, then finds azimuth as if on a sphere.
      Parameters:
      latA -
      lonA -
      hA -
      latB -
      lonB -
      hB -
      Returns:
    • latLonForAzimuth

      public double[] latLonForAzimuth(double lat, double lon, double hMeters, double azimuth, double distdeg, double pointDepthM)
    • length

      public double length(double[] vec)
    • listToArray

      public double[] listToArray(List<Double> doubleList)