Class GeodesicData

java.lang.Object
com.irurueta.navigation.geodesic.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(double, double, double, double) and Geodesic.inverse(double, double, double, double) and it always includes the field a12.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private double
    Arc length on the auxiliary sphere between point 1 and point 2 (degrees).
    private double
    Area under the geodesic (meters2).
    private double
    Azimuth at point 1 (degrees).
    private double
    Azimuth at point 2 (degrees).
    private double
    Latitude of point 1 (degrees).
    private double
    Latitude of point 2 (degrees).
    private double
    Longitude of point 1 (degrees).
    private double
    Longitude of point 2 (degrees).
    private double
    Reduced length of geodesic (meters).
    private double
    Distance between point 1 and point 2 (meters).
    private double
    Geodesic scale of point 2 relative to point 1 (dimensionless).
    private double
    Geodesic scale of point 1 relative to point 2 (dimensionless).
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Gets arc length on the auxiliary sphere between point 1 and point 2 (degrees).
    double
    Gets area under the geodesic (meter2).
    double
    Gets azimuth at point 1 (degrees).
    double
    Gets azimuth at point 2 (degrees).
    double
    Gets latitude of point 1 (degrees).
    double
    Gets latitude of point 2 (degrees).
    double
    Gets longitude of point 1 (degrees).
    double
    Gets longitude of point 2 (degrees).
    double
    Gets reduced length of geodesic (meters).
    double
    Gets distance between point 1 and point 2 (meters).
    double
    Gets geodesic scale of point 2 relative to point 1 (dimensionless).
    double
    Gets geodesic scale of point 1 relative to point 2 (dimensionless).
    void
    setA12(double a12)
    Sets arc length on the auxiliary sphere between point 1 and point 2 (degrees).
    void
    setAreaS12(double areaS12)
    Sets area under the geodesic (meter2).
    void
    setAzi1(double azi1)
    Sets azimuth at point 1 (degrees).
    void
    setAzi2(double azi2)
    Sets azimuth at point 2 (degrees).
    void
    setLat1(double lat1)
    Sets latitude of point 1 (degrees).
    void
    setLat2(double lat2)
    Sets latitude of point 2 (degrees).
    void
    setLon1(double lon1)
    Sets longitude of point 1 (degrees).
    void
    setLon2(double lon2)
    Sets longitude of point 2 (degrees).
    void
    setM12(double m12)
    Sets reduced length of geodesic (meters).
    void
    setS12(double s12)
    Sets distance between point 1 and point 2 (meters).
    void
    setScaleM12(double scaleM12)
    Sets geodesic scale of point 2 relative to point 1 (dimensionless).
    void
    setScaleM21(double scaleM21)
    Sets geodesic scale of point 1 relative to point 2 (dimensionless).

    Methods inherited from class java.lang.Object

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

    • lat1

      private double lat1
      Latitude of point 1 (degrees).
    • lon1

      private double lon1
      Longitude of point 1 (degrees).
    • azi1

      private double azi1
      Azimuth at point 1 (degrees).
    • lat2

      private double lat2
      Latitude of point 2 (degrees).
    • lon2

      private double lon2
      Longitude of point 2 (degrees).
    • azi2

      private double azi2
      Azimuth at point 2 (degrees).
    • s12

      private double s12
      Distance between point 1 and point 2 (meters).
    • a12

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

      private double m12
      Reduced length of geodesic (meters).
    • scaleM12

      private double scaleM12
      Geodesic scale of point 2 relative to point 1 (dimensionless).
    • scaleM21

      private double scaleM21
      Geodesic scale of point 1 relative to point 2 (dimensionless).
    • areaS12

      private double areaS12
      Area under the geodesic (meters2).
  • Constructor Details

    • GeodesicData

      public GeodesicData()
      Constructor. Initialize all the fields to Double.NaN.
  • Method Details

    • getLat1

      public double getLat1()
      Gets latitude of point 1 (degrees).
      Returns:
      latitude of point 1.
    • setLat1

      public void setLat1(double lat1)
      Sets latitude of point 1 (degrees).
      Parameters:
      lat1 - latitude of point 1.
    • getLon1

      public double getLon1()
      Gets longitude of point 1 (degrees).
      Returns:
      longitude of point 1.
    • setLon1

      public void setLon1(double lon1)
      Sets longitude of point 1 (degrees).
      Parameters:
      lon1 - longitude of point 1.
    • getAzi1

      public double getAzi1()
      Gets azimuth at point 1 (degrees).
      Returns:
      azimuth at point 1.
    • setAzi1

      public void setAzi1(double azi1)
      Sets azimuth at point 1 (degrees).
      Parameters:
      azi1 - azimuth at point 1.
    • getLat2

      public double getLat2()
      Gets latitude of point 2 (degrees).
      Returns:
      latitude of point 2.
    • setLat2

      public void setLat2(double lat2)
      Sets latitude of point 2 (degrees).
      Parameters:
      lat2 - latitude of point 2.
    • getLon2

      public double getLon2()
      Gets longitude of point 2 (degrees).
      Returns:
      longitude of point 2.
    • setLon2

      public void setLon2(double lon2)
      Sets longitude of point 2 (degrees).
      Parameters:
      lon2 - longitude of point 2.
    • getAzi2

      public double getAzi2()
      Gets azimuth at point 2 (degrees).
      Returns:
      azimuth at point 2.
    • setAzi2

      public void setAzi2(double azi2)
      Sets azimuth at point 2 (degrees).
      Parameters:
      azi2 - azimuth at point 2.
    • getS12

      public double getS12()
      Gets distance between point 1 and point 2 (meters).
      Returns:
      distance between point 1 and point 2.
    • setS12

      public void setS12(double s12)
      Sets distance between point 1 and point 2 (meters).
      Parameters:
      s12 - distance between point 1 and point 2.
    • getA12

      public double getA12()
      Gets arc length on the auxiliary sphere between point 1 and point 2 (degrees).
      Returns:
      arc length on the auxiliary sphere between point 1 and point 2.
    • setA12

      public void setA12(double a12)
      Sets arc length on the auxiliary sphere between point 1 and point 2 (degrees).
      Parameters:
      a12 - arc length on the auxiliary sphere between point 1 and point 2.
    • getM12

      public double getM12()
      Gets reduced length of geodesic (meters).
      Returns:
      reduced length of geodesic.
    • setM12

      public void setM12(double m12)
      Sets reduced length of geodesic (meters).
      Parameters:
      m12 - reduced length of geodesic.
    • getScaleM12

      public double getScaleM12()
      Gets geodesic scale of point 2 relative to point 1 (dimensionless).
      Returns:
      geodesic scale of point 2 relative to point 1.
    • setScaleM12

      public void setScaleM12(double scaleM12)
      Sets geodesic scale of point 2 relative to point 1 (dimensionless).
      Parameters:
      scaleM12 - geodesic scale of point 2 relative to point 1.
    • getScaleM21

      public double getScaleM21()
      Gets geodesic scale of point 1 relative to point 2 (dimensionless).
      Returns:
      geodesic scale of point 1 relative to point 2.
    • setScaleM21

      public void setScaleM21(double scaleM21)
      Sets geodesic scale of point 1 relative to point 2 (dimensionless).
      Parameters:
      scaleM21 - geodesic scale of point 1 relative to point 2.
    • getAreaS12

      public double getAreaS12()
      Gets area under the geodesic (meter2).
      Returns:
      area under the geodesic.
    • setAreaS12

      public void setAreaS12(double areaS12)
      Sets area under the geodesic (meter2).
      Parameters:
      areaS12 - area under the geodesic.