Class G2D

  • Direct Known Subclasses:
    G2DM, G3D

    public class G2D
    extends Position
    A Position in a geographic coordinate reference system.
    Author:
    Karel Maesen, Geovise BVBA creation-date: 2/19/14
    • Constructor Detail

      • G2D

        public G2D()
        Constructs an empty instance
      • G2D

        public G2D​(double lon,
                   double lat)
        Constructs an instance with the specified longitude and latitude
        Parameters:
        lon - the longitude
        lat - the latitude
      • G2D

        protected G2D​(double... coords)
        Constructs an instance from the specified coordinates. It expects first the longitude, then the latitude coordinate
        Parameters:
        coords -
    • Method Detail

      • getLon

        public double getLon()
        Returns the longitude of this position
        Returns:
        the longitude of this position
      • getLat

        public double getLat()
        Returns the latitude of this position
        Returns:
        the latitude of this position