Class LatLonPoint2D.Double

    • Field Detail

      • lat

        protected double lat
      • lon

        protected double lon
      • radLat

        protected transient double radLat
      • radLon

        protected transient double radLon
    • Constructor Detail

      • Double

        public Double()
        Default constructor, values set to 0, 0.
      • Double

        public Double​(double lat,
                      double lon)
        Set the latitude, longitude for this point in decimal degrees.
        Parameters:
        lat - latitude
        lon - longitude.
      • Double

        public Double​(double lat,
                      double lon,
                      boolean isRadian)
        Set the latitude, longitude for this point, with the option of noting whether the values are in degrees or radians.
        Parameters:
        lat - latitude
        lon - longitude.
        isRadian - true if in radians, false if in degrees true of values are radians.
      • Double

        public Double​(LatLonPoint2D llp)
        Create Double version from another LatLonPoint2D.
        Parameters:
        llp -
      • Double

        public Double​(Point2D pt2D)
        Create Double version from Point2D object, where the x, y values are expected to be decimal degrees.
        Parameters:
        pt2D -
    • Method Detail

      • setLocation

        public void setLocation​(double x,
                                double y)
        Point2D method, inheriting signature!!
        Specified by:
        setLocation in class Point2D
        Parameters:
        x - longitude value in decimal degrees.
        y - latitude value in decimal degrees.
      • setLatLon

        public void setLatLon​(double lat,
                              double lon)
        Set latitude and longitude.
        Specified by:
        setLatLon in class LatLonPoint2D
        Parameters:
        lat - latitude in decimal degrees.
        lon - longitude in decimal degrees.
      • setLatLon

        public void setLatLon​(double lat,
                              double lon,
                              boolean isRadians)
        Set latitude and longitude.
        Specified by:
        setLatLon in class LatLonPoint2D
        Parameters:
        lat - latitude.
        lon - longitude.
        isRadians - true if lat/lon values are radians.
      • getX

        public double getX()
        Specified by:
        getX in class Point2D
        Returns:
        longitude in decimal degrees.
      • getY

        public double getY()
        Specified by:
        getY in class Point2D
        Returns:
        latitude in decimal degrees.
      • getLatitude

        public double getLatitude()
        Specified by:
        getLatitude in class LatLonPoint2D
        Returns:
        float latitude in decimal degrees.
      • getLongitude

        public double getLongitude()
        Specified by:
        getLongitude in class LatLonPoint2D
        Returns:
        float longitude in decimal degrees.
      • getRadLon

        public double getRadLon()
        Specified by:
        getRadLon in class LatLonPoint2D
        Returns:
        radian longitude.
      • getRadLat

        public double getRadLat()
        Specified by:
        getRadLat in class LatLonPoint2D
        Returns:
        radian latitude.
      • setLatitude

        public void setLatitude​(double lat)
        Set latitude.
        Specified by:
        setLatitude in class LatLonPoint2D
        Parameters:
        lat - latitude in decimal degrees
      • setLongitude

        public void setLongitude​(double lon)
        Set longitude.
        Specified by:
        setLongitude in class LatLonPoint2D
        Parameters:
        lon - longitude in decimal degrees