@Deprecated public class LatLonPointImpl extends Object implements LatLonPoint, Serializable
LatLonPoint
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected double |
lat
Deprecated.
East latitude in degrees, always +/- 90
|
protected double |
lon
Deprecated.
North longitude in degrees, always +/- 180
|
Constructor and Description |
---|
LatLonPointImpl()
Deprecated.
use LatLonPoint.create
|
LatLonPointImpl(double lat,
double lon)
Deprecated.
use LatLonPoint.create
|
LatLonPointImpl(LatLonPoint pt)
Deprecated.
use LatLonPoint.create
|
Modifier and Type | Method and Description |
---|---|
static boolean |
betweenLon(double lon,
double lonBeg,
double lonEnd)
Deprecated.
use LatLonPoints.betweenLon
|
boolean |
equals(Object other)
Deprecated.
|
static double |
getClockwiseDistanceTo(double from,
double to)
Deprecated.
use LatLonPoints.getClockwiseDistanceTo
|
double |
getLatitude()
Deprecated.
Returns the latitude, in degrees.
|
double |
getLongitude()
Deprecated.
Returns the longitude, in degrees.
|
int |
hashCode()
Deprecated.
|
static double |
latNormal(double lat)
Deprecated.
use LatLonPoints.latNormal
|
static String |
latToString(double lat,
int ndec)
Deprecated.
use LatLonPoints.latToString
|
static double |
lonDiff(double lon1,
double lon2)
Deprecated.
use LatLonPoints.lonDiff
|
static double |
lonNormal(double lon)
Deprecated.
use LatLonPoints.lonNormal
|
static double |
lonNormal(double lon,
double center)
Deprecated.
use LatLonPoints.lonNormal
|
static double |
lonNormal360(double lon)
Deprecated.
use LatLonPoints.lonNormal360
|
static double |
lonNormalFrom(double lon,
double start)
Deprecated.
use LatLonPoints.lonNormalFrom
|
static String |
lonToString(double lon,
int ndec)
Deprecated.
use LatLonPoints.lonToString
|
boolean |
nearlyEquals(LatLonPoint that,
double maxRelDiff)
Deprecated.
Returns
true if this point is nearly equal to that . |
static double |
range180(double lon)
Deprecated.
use LatLonPoints.range180
|
void |
set(double lat,
double lon)
Deprecated.
set lat, lon using double values
|
void |
set(float lat,
float lon)
Deprecated.
set lat, lon using float values
|
void |
set(LatLonPoint pt)
Deprecated.
set lat, lon using values of pt
|
void |
setLatitude(double lat)
Deprecated.
Set the latitude, in degrees.
|
void |
setLongitude(double lon)
Deprecated.
Set the longitude, in degrees.
|
String |
toString()
Deprecated.
Default string representation
|
String |
toString(int sigDigits)
Deprecated.
use LatLonPoints.toString
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
create, create, nearlyEquals
protected double lat
protected double lon
@Deprecated public LatLonPointImpl()
@Deprecated public LatLonPointImpl(LatLonPoint pt)
@Deprecated public LatLonPointImpl(double lat, double lon)
lat
- north latitude in degreeslon
- east longitude in degrees@Deprecated public static boolean betweenLon(double lon, double lonBeg, double lonEnd)
lon
- point to testlonBeg
- beginning longitudelonEnd
- ending longitude@Deprecated public static double getClockwiseDistanceTo(double from, double to)
@Deprecated public static double range180(double lon)
lon
- lon to normalize@Deprecated public static double lonNormal360(double lon)
lon
- lon to normalize@Deprecated public static double lonNormal(double lon, double center)
lon
- lon to normalizecenter
- center point@Deprecated public static double lonNormalFrom(double lon, double start)
lon
- lon to normalizestart
- starting point@Deprecated public static double lonNormal(double lon)
lon
- east latitude in degrees@Deprecated public static double lonDiff(double lon1, double lon2)
lon1
- startlon2
- end@Deprecated public static double latNormal(double lat)
lat
- north latitude in degrees@Deprecated public static String latToString(double lat, int ndec)
lat
- the latitude.ndec
- number of digits to right of decimal point@Deprecated public static String lonToString(double lon, int ndec)
lon
- the longitude.ndec
- number of digits to right of decimal pointpublic double getLongitude()
getLongitude
in interface LatLonPoint
public double getLatitude()
getLatitude
in interface LatLonPoint
public void set(LatLonPoint pt)
pt
- point to usepublic void set(double lat, double lon)
lat
- lat valuelon
- lon valuepublic void set(float lat, float lon)
lat
- lat valuelon
- lon valuepublic void setLongitude(double lon)
lon
- east longitude in degreespublic void setLatitude(double lat)
lat
- north latitude in degreespublic boolean nearlyEquals(LatLonPoint that, double maxRelDiff)
LatLonPoint
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.nearlyEquals
in interface LatLonPoint
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 String toString()
@Deprecated public String toString(int sigDigits)
sigDigits
- significant digits