Class GeodesicData

java.lang.Object
net.sf.geographiclib.GeodesicData

public class GeodesicData extends Object
The results of geodesic calculations. This is used to return the results for a geodesic between point 1 (lat1, lon1) and point 2 (lat2, lon2). Fields that have not been set will be filled with Double.NaN. The returned GeodesicData objects always include the parameters provided to Geodesic.Direct and Geodesic.Inverse and it always includes the field a12.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    double
    arc length on the auxiliary sphere between point 1 and point 2 (degrees).
    double
    azimuth at point 1 (degrees).
    double
    azimuth at point 2 (degrees).
    double
    latitude of point 1 (degrees).
    double
    latitude of point 2 (degrees).
    double
    longitude of point 1 (degrees).
    double
    longitude of point 2 (degrees).
    double
    reduced length of geodesic (meters).
    double
    geodesic scale of point 2 relative to point 1 (dimensionless).
    double
    geodesic scale of point 1 relative to point 2 (dimensionless).
    double
    distance between point 1 and point 2 (meters).
    double
    area under the geodesic (meters2).
  • Constructor Summary

    Constructors
    Constructor
    Description
    Initialize all the fields to Double.NaN.
  • Method Summary

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • lat1

      public double lat1
      latitude of point 1 (degrees).
    • lon1

      public double lon1
      longitude of point 1 (degrees).
    • azi1

      public double azi1
      azimuth at point 1 (degrees).
    • lat2

      public double lat2
      latitude of point 2 (degrees).
    • lon2

      public double lon2
      longitude of point 2 (degrees).
    • azi2

      public double azi2
      azimuth at point 2 (degrees).
    • s12

      public double s12
      distance between point 1 and point 2 (meters).
    • a12

      public double a12
      arc length on the auxiliary sphere between point 1 and point 2 (degrees).
    • m12

      public double m12
      reduced length of geodesic (meters).
    • M12

      public double M12
      geodesic scale of point 2 relative to point 1 (dimensionless).
    • M21

      public double M21
      geodesic scale of point 1 relative to point 2 (dimensionless).
    • S12

      public double S12
      area under the geodesic (meters2).
  • Constructor Details

    • GeodesicData

      public GeodesicData()
      Initialize all the fields to Double.NaN.