public abstract class LatLonPoint extends Object
| Modifier and Type | Field and Description |
|---|---|
static LatLonPoint |
INVALID |
| Constructor and Description |
|---|
LatLonPoint() |
| Modifier and Type | Method and Description |
|---|---|
static LatLonPoint |
create(double lat,
double lon)
Create a LatLonPoint.
|
abstract double |
getLatitude()
Returns the latitude, between +/- 90 degrees.
|
abstract double |
getLongitude()
Returns the longitude, between +/-180 degrees
|
boolean |
nearlyEquals(LatLonPoint that)
Returns the result of
nearlyEquals(LatLonPoint, double), with Misc.defaultMaxRelativeDiffDouble. |
boolean |
nearlyEquals(LatLonPoint that,
double maxRelDiff)
Returns
true if this point is nearly equal to that. |
String |
toString() |
public static LatLonPoint INVALID
public static LatLonPoint create(double lat, double lon)
public abstract double getLatitude()
public abstract double getLongitude()
public boolean nearlyEquals(LatLonPoint that)
nearlyEquals(LatLonPoint, double), with Misc.defaultMaxRelativeDiffDouble.public boolean nearlyEquals(LatLonPoint 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.