@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) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
double |
getLatitude()
Returns the latitude, not necessarily in [-90, 90].
|
double |
getLongitude()
Returns the longitude, not necessarily in [-180, 180].
|
int |
hashCode() |
boolean |
nearlyEquals(LatLonPointNoNormalize that)
Returns the result of
nearlyEquals(LatLonPointNoNormalize, double) , with
Misc.defaultMaxRelativeDiffDouble . |
boolean |
nearlyEquals(LatLonPointNoNormalize that,
double maxRelDiff)
Returns
true if this point is nearly equal to that . |
String |
toString() |
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
.