Class LandVertex


  • public class LandVertex
    extends Object
    LandVertex is a bare-bones lat/lon class, lacking most nice features of LatLon. It is necessary because LatLons normalize themselves, which causes land polygons to wrap poorly around the 180 degree longitude line. Lat and lon are stored in unnormalized degrees.
    Author:
    hogye
    • Field Detail

      • lat

        public final double lat
      • lon

        public final double lon
    • Constructor Detail

      • LandVertex

        public LandVertex​(double lat_DEG,
                          double lon_DEG)
    • Method Detail

      • getDistanceX_SU

        public double getDistanceX_SU​(double longitude)
        Returns signed east-west distance from this vertex to the given longitude. The latitude of this vertex is used in converting longitudinal degrees to distance.
      • getDistanceX_SU

        public double getDistanceX_SU​(LandVertex vertex)
      • getDistanceY_SU

        public double getDistanceY_SU​(double latitude)
        Returns signed north-south distance from this vertex to the given latitude.
      • getDistanceY_SU

        public double getDistanceY_SU​(LandVertex vertex)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object