Class Cell

  • All Implemented Interfaces:
    java.io.Serializable

    public class Cell
    extends java.lang.Object
    implements java.io.Serializable
    A latitude longitude rectangle bordered by rhumb lines east-west and north-south. The rectangle is equal in degrees in width and height (but in terms of distance this can of course vary depending on the location of the cell on the earth).
    See Also:
    Serialized Form
    • Method Detail

      • cellAt

        public static java.util.Optional<Cell> cellAt​(double lat,
                                                      double lon,
                                                      Options options)
      • leftEdgeLongitude

        public double leftEdgeLongitude​(Options options)
      • rightEdgeLongitude

        public double rightEdgeLongitude​(Options options)
      • topEdgeLatitude

        public double topEdgeLatitude​(Options options)
      • bottomEdgeLatitude

        public double bottomEdgeLatitude​(Options options)
      • getLatIndex

        public long getLatIndex()
      • getLonIndex

        public long getLonIndex()
      • getCentreLon

        public double getCentreLon​(Options options)
      • getCentreLat

        public double getCentreLat​(Options options)
      • areaNauticalMiles

        public double areaNauticalMiles​(Options options)
        From http://mathforum.org/library/drmath/view/63767.html
        Parameters:
        options -
        Returns:
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object