Package au.gov.amsa.geo.model
Class Cell
- java.lang.Object
-
- au.gov.amsa.geo.model.Cell
-
- All Implemented Interfaces:
java.io.Serializable
public class Cell extends java.lang.Object implements java.io.SerializableA 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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleareaNauticalMiles(Options options)From http://mathforum.org/library/drmath/view/63767.htmldoublebottomEdgeLatitude(Options options)static java.util.Optional<Cell>cellAt(double lat, double lon, Options options)static java.util.Optional<Cell>cellAt(HasPosition p, Options options)booleanequals(java.lang.Object obj)doublegetCentreLat(Options options)doublegetCentreLon(Options options)longgetLatIndex()longgetLonIndex()inthashCode()doubleleftEdgeLongitude(Options options)doublerightEdgeLongitude(Options options)doubletopEdgeLatitude(Options options)java.lang.StringtoString()
-
-
-
Method Detail
-
cellAt
public static java.util.Optional<Cell> cellAt(HasPosition p, 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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-