Class LatLonPoint2D.Float

    • Field Detail

      • lat

        protected float lat
      • lon

        protected float lon
      • radLat

        protected transient float radLat
      • radLon

        protected transient float radLon
    • Constructor Detail

      • Float

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

        public Float​(float lat,
                     float lon)
        Parameters:
        lat - decimal degree latitude.
        lon - decimal degree longitude.
      • Float

        public Float​(float lat,
                     float lon,
                     boolean isRadian)
        Parameters:
        lat - latitude
        lon - longitude
        isRadian - true if values are radians, false if decimal degrees.
      • Float

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

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

      • setLocation

        public void setLocation​(float x,
                                float y)
        Point2D method, inheriting signature!!
        Parameters:
        x - longitude value in decimal degrees.
        y - latitude value in decimal degrees.
      • 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​(float lat,
                              float lon)
        Set lat/lon values.
        Parameters:
        lat - decimal degree latitude.
        lon - decimal degree longitude.
      • setLatLon

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

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

        public void setLatLon​(float lat,
                              float lon,
                              boolean isRadians)
        Set lat/lon values.
        Parameters:
        lat - latitude.
        lon - longitude.
        isRadians - true if values are radians.
      • getX

        public double getX()
        Point2D method.
        Specified by:
        getX in class Point2D
        Returns:
        decimal degree longitude.
        See Also:
        Point2D.getX()
      • getY

        public double getY()
        Point2D method
        Specified by:
        getY in class Point2D
        Returns:
        decimal degree latitude.
      • getLongitude

        public double getLongitude()
        Specified by:
        getLongitude in class LatLonPoint2D
        Returns:
        decimal degree longitude.
      • getLatitude

        public double getLatitude()
        Specified by:
        getLatitude in class LatLonPoint2D
        Returns:
        decimal degree latitude.
      • 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​(float lat)
        Set latitude.
        Parameters:
        lat - latitude in decimal degrees
      • setLatitude

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

        public void setLongitude​(float lon)
        Set longitude.
        Parameters:
        lon - longitude in decimal degrees
      • setLongitude

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