Package ucar.unidata.geoloc
Class LatLonPointNoNormalize
java.lang.Object
ucar.unidata.geoloc.LatLonPointNoNormalize
Deprecated.
will move in ver6
Similar to
LatLonPoint, but this class does not normalize its latitude and longitude, even for comparison.
That is, latitudes may lie outside of [-90, 90] and longitudes may lie outside of [-180, 180].- Since:
- 2018-03-08
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.doubleDeprecated.Returns the latitude, not necessarily in [-90, 90].doubleDeprecated.Returns the longitude, not necessarily in [-180, 180].inthashCode()Deprecated.booleanDeprecated.Returns the result ofnearlyEquals(LatLonPointNoNormalize, double), withMisc.defaultMaxRelativeDiffDouble.booleannearlyEquals(LatLonPointNoNormalize that, double maxRelDiff) Deprecated.Returnstrueif this point is nearly equal tothat.toString()Deprecated.
-
Constructor Details
-
LatLonPointNoNormalize
public LatLonPointNoNormalize(double lat, double lon) Deprecated.
-
-
Method Details
-
getLatitude
public double getLatitude()Deprecated.Returns the latitude, not necessarily in [-90, 90].- Returns:
- latitude (degrees)
-
getLongitude
public double getLongitude()Deprecated.Returns the longitude, not necessarily in [-180, 180].- Returns:
- longitude (degrees)
-
nearlyEquals
Deprecated.Returns the result ofnearlyEquals(LatLonPointNoNormalize, double), withMisc.defaultMaxRelativeDiffDouble. -
nearlyEquals
Deprecated.Returnstrueif this point is nearly equal tothat. The "near equality" of points is determined usingMisc.nearlyEquals(double, double, double), with the specified maxRelDiff.- Parameters:
that- the other point to check.maxRelDiff- the maximumrelative differencethe two points may have.- Returns:
trueif this point is nearly equal tothat.
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-