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 boolean
equals(Object o)
Deprecated.double
getLatitude()
Deprecated.Returns the latitude, not necessarily in [-90, 90].double
getLongitude()
Deprecated.Returns the longitude, not necessarily in [-180, 180].int
hashCode()
Deprecated.boolean
nearlyEquals(LatLonPointNoNormalize that)
Deprecated.Returns the result ofnearlyEquals(LatLonPointNoNormalize, double)
, withMisc.defaultMaxRelativeDiffDouble
.boolean
nearlyEquals(LatLonPointNoNormalize that, double maxRelDiff)
Deprecated.Returnstrue
if this point is nearly equal tothat
.String
toString()
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.Returnstrue
if 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 difference
the two points may have.- Returns:
true
if this point is nearly equal tothat
.
-
-