public class LatLonPointImmutable extends Object implements LatLonPoint
Modifier and Type | Field and Description |
---|---|
static LatLonPointImmutable |
INVALID |
Constructor and Description |
---|
LatLonPointImmutable(double lat,
double lon) |
LatLonPointImmutable(LatLonPoint pt) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(LatLonPoint pt)
Returns true if this represents the same point as pt.
|
boolean |
equals(Object o) |
double |
getLatitude()
Returns the latitude, between +/- 90 degrees.
|
double |
getLongitude()
Returns the longitude, between +/-180 degrees
|
int |
hashCode() |
public static final LatLonPointImmutable INVALID
public LatLonPointImmutable(double lat, double lon)
public LatLonPointImmutable(LatLonPoint pt)
public double getLongitude()
LatLonPoint
getLongitude
in interface LatLonPoint
public double getLatitude()
LatLonPoint
getLatitude
in interface LatLonPoint
public boolean equals(LatLonPoint pt)
LatLonPoint
equals
in interface LatLonPoint
pt
- point to checkCopyright © 1999–2019 UCAR/Unidata. All rights reserved.