Package ucar.unidata.geoloc
Class LatLonPointNoNormalize
- java.lang.Object
-
- ucar.unidata.geoloc.LatLonPointNoNormalize
-
@Deprecated @Immutable public class LatLonPointNoNormalize extends Object
Deprecated.will move in ver6Similar toLatLonPoint, 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 Constructor Description LatLonPointNoNormalize(double lat, double lon)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object o)Deprecated.doublegetLatitude()Deprecated.Returns the latitude, not necessarily in [-90, 90].doublegetLongitude()Deprecated.Returns the longitude, not necessarily in [-180, 180].inthashCode()Deprecated.booleannearlyEquals(LatLonPointNoNormalize that)Deprecated.Returns the result ofnearlyEquals(LatLonPointNoNormalize, double), withMisc.defaultMaxRelativeDiffDouble.booleannearlyEquals(LatLonPointNoNormalize that, double maxRelDiff)Deprecated.Returnstrueif this point is nearly equal tothat.StringtoString()Deprecated.
-
-
-
Method Detail
-
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
public boolean nearlyEquals(LatLonPointNoNormalize that)
Deprecated.Returns the result ofnearlyEquals(LatLonPointNoNormalize, double), withMisc.defaultMaxRelativeDiffDouble.
-
nearlyEquals
public boolean nearlyEquals(LatLonPointNoNormalize that, double maxRelDiff)
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.
-
-