@Deprecated
@Immutable
public class LatLonPointNoNormalize
extends java.lang.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(java.lang.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 . |
java.lang.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
.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object