public interface LatLonPoint
| Modifier and Type | Method and Description |
|---|---|
static LatLonPoint |
create()
Standard way to create a "default" LatLonPoint.
|
static LatLonPoint |
create(double lat,
double lon)
Standard way to create a LatLonPoint.
|
double |
getLatitude()
Returns the latitude, between +/- 90 degrees.
|
double |
getLongitude()
Returns the longitude, between +/-180 degrees
|
default 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. |
static LatLonPoint create()
static LatLonPoint create(double lat, double lon)
double getLatitude()
double getLongitude()
default boolean nearlyEquals(LatLonPoint that)
nearlyEquals(LatLonPoint, double), with Misc.defaultMaxRelativeDiffDouble.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.