Class GnomonicData

java.lang.Object
com.irurueta.navigation.geodesic.GnomonicData

public class GnomonicData extends Object
The results of gnomonic projection.

This is used to return the results for a gnomonic projection of a point (lat, lon) given a center point of projection (lat0, lon0). The returned GnomonicData objects always include the parameters provided to Gnomonic.forward(double, double, double, double) and Gnomonic.reverse(double, double, double, double) and it always includes the fields x, y, azi, and rk.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private double
    Azimuth of geodesic at point (degrees).
    private double
    Latitude of point (degrees).
    private double
    Latitude of center point of projection (degrees).
    private double
    Longitude of point (degrees).
    private double
    Longitude of center point of projection (degrees).
    private double
    Reciprocal of azimuthal scale at point.
    private double
    Easting of point (meters).
    private double
    Northing of point (meters).
  • Constructor Summary

    Constructors
    Constructor
    Description
    Initialize all the fields to Double.NaN.
    GnomonicData(double lat0, double lon0, double lat, double lon, double x, double y, double azi, double rk)
    Constructor initializing all the fields for gnomonic projection of a point (lat, lon) given a center point of projection (lat0, lon0).
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Gets azimuth of geodesic at point (degrees).
    double
    Gets latitude of point (degrees).
    double
    Gets latitude of center point of projection (degrees).
    double
    Gets longitude of point (degrees).
    double
    Gets longitude of center point of projection (degrees).
    double
    Gets reciprocal of azimuthal scale at point.
    double
    Gets easting of point (meters).
    double
    Gets northing of point (meters).
    void
    setAzi(double azi)
    Sets azimuth of geodesic at point (degrees).
    void
    setLat(double lat)
    Sets latitude of point (degrees).
    void
    setLat0(double lat0)
    Sets latitude of center point of projection (degrees).
    void
    setLon(double lon)
    Sets longitude of point (degrees).
    void
    setLon0(double lon0)
    Sets longitude of center point of projection (degrees).
    void
    setRk(double rk)
    Sets reciprocal of azimuthal scale at point.
    void
    setX(double x)
    Sets easting of point (meters).
    void
    setY(double y)
    Sets northing of point (meters).

    Methods inherited from class java.lang.Object

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

    • lat0

      private double lat0
      Latitude of center point of projection (degrees).
    • lon0

      private double lon0
      Longitude of center point of projection (degrees).
    • lat

      private double lat
      Latitude of point (degrees).
    • lon

      private double lon
      Longitude of point (degrees).
    • x

      private double x
      Easting of point (meters).
    • y

      private double y
      Northing of point (meters).
    • azi

      private double azi
      Azimuth of geodesic at point (degrees).
    • rk

      private double rk
      Reciprocal of azimuthal scale at point.
  • Constructor Details

    • GnomonicData

      public GnomonicData()
      Initialize all the fields to Double.NaN.
    • GnomonicData

      public GnomonicData(double lat0, double lon0, double lat, double lon, double x, double y, double azi, double rk)
      Constructor initializing all the fields for gnomonic projection of a point (lat, lon) given a center point of projection (lat0, lon0).
      Parameters:
      lat0 - latitude of center point of projection (degrees).
      lon0 - longitude of center point of projection (degrees).
      lat - latitude of point (degrees).
      lon - longitude of point (degrees).
      x - easting of point (meters).
      y - northing of point (meters).
      azi - azimuth of geodesic at point (degrees).
      rk - reciprocal of azimuthal scale at point.
  • Method Details

    • getLat0

      public double getLat0()
      Gets latitude of center point of projection (degrees).
      Returns:
      latitude of center point of projection.
    • setLat0

      public void setLat0(double lat0)
      Sets latitude of center point of projection (degrees).
      Parameters:
      lat0 - latitude of center point of projection.
    • getLon0

      public double getLon0()
      Gets longitude of center point of projection (degrees).
      Returns:
      longitude of center point of projection.
    • setLon0

      public void setLon0(double lon0)
      Sets longitude of center point of projection (degrees).
      Parameters:
      lon0 - longitude of center point of projection.
    • getLat

      public double getLat()
      Gets latitude of point (degrees).
      Returns:
      latitude of point.
    • setLat

      public void setLat(double lat)
      Sets latitude of point (degrees).
      Parameters:
      lat - latitude of point.
    • getLon

      public double getLon()
      Gets longitude of point (degrees).
      Returns:
      longitude of point.
    • setLon

      public void setLon(double lon)
      Sets longitude of point (degrees).
      Parameters:
      lon - longitude of point.
    • getX

      public double getX()
      Gets easting of point (meters).
      Returns:
      easting of point.
    • setX

      public void setX(double x)
      Sets easting of point (meters).
      Parameters:
      x - easting of point.
    • getY

      public double getY()
      Gets northing of point (meters).
      Returns:
      northing of point.
    • setY

      public void setY(double y)
      Sets northing of point (meters).
      Parameters:
      y - northing of point.
    • getAzi

      public double getAzi()
      Gets azimuth of geodesic at point (degrees).
      Returns:
      azimuth of geodesic at point.
    • setAzi

      public void setAzi(double azi)
      Sets azimuth of geodesic at point (degrees).
      Parameters:
      azi - azimuth of geodesic at point.
    • getRk

      public double getRk()
      Gets reciprocal of azimuthal scale at point.
      Returns:
      reciprocal of azimuthal scale at point.
    • setRk

      public void setRk(double rk)
      Sets reciprocal of azimuthal scale at point.
      Parameters:
      rk - reciprocal of azimuthal scale at point.