@Deprecated @Immutable public class LatLonPointNoNormalize extends Object
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].Constructor and Description |
---|
LatLonPointNoNormalize(double lat,
double lon)
Deprecated.
|
Modifier and Type | Method and 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 of
nearlyEquals(LatLonPointNoNormalize, double) , with
Misc.defaultMaxRelativeDiffDouble . |
boolean |
nearlyEquals(LatLonPointNoNormalize that,
double maxRelDiff)
Deprecated.
Returns
true if this point is nearly equal to that . |
String |
toString()
Deprecated.
|
public LatLonPointNoNormalize(double lat, double lon)
public double getLatitude()
public double getLongitude()
public boolean nearlyEquals(LatLonPointNoNormalize that)
nearlyEquals(LatLonPointNoNormalize, double)
, with
Misc.defaultMaxRelativeDiffDouble
.public boolean nearlyEquals(LatLonPointNoNormalize that, double maxRelDiff)
true
if this point is nearly equal to that
. The "near equality" of points is determined
using Misc.nearlyEquals(double, double, double)
, with the specified maxRelDiff.that
- the other point to check.maxRelDiff
- the maximum relative difference
the two points may have.true
if this point is nearly equal to that
.