public class QualifiedCoordinates extends Coordinates
QualifiedCoordinates
class are Coordinates
with horizontal and vertical accuracy.DD_MM, DD_MM_SS
Constructor and Description |
---|
QualifiedCoordinates(double latitude,
double longitude,
float altitude,
float horizontalAccuracy,
float verticalAccuracy)
Constructor for a new
QualifiedCoordinates object, |
Modifier and Type | Method and Description |
---|---|
float |
getHorizontalAccuracy()
Returns the horizontal accuracy of the location in meters.
|
float |
getVerticalAccuracy()
Returns the vertical accuracy of the location in meters.
|
void |
setHorizontalAccuracy(float horizontalAccuracy)
Sets the horizontal accuracy in meters.
|
void |
setVerticalAccuracy(float verticalAccuracy)
Sets the vertical accuracy in meters.
|
azimuthTo, convert, convert, distance, getAltitude, getLatitude, getLongitude, setAltitude, setLatitude, setLongitude
public QualifiedCoordinates(double latitude, double longitude, float altitude, float horizontalAccuracy, float verticalAccuracy)
QualifiedCoordinates
object,
The coordinate values are given in the World Geodetic System 1984 (WGS84).
The altitude can be set to unknown with Float.NaN
latitude
- latitude latitude, range is from -90.0 to 90.0.longitude
- longitude, range is from -180.0 to 180.0.altitude
- altitude in meters, defined as
height above the WGS84 ellipsoid. Can be set to unknown
with Float.NaN
horizontalAccuracy
- the horizontal accuracy of this location
result in meters. Float.NaN
indicates, that the accuracy is not known.verticalAccuracy
- the vertical accuracy of this location result
in meters. Float.NaN
indicates,
that the accuracy is not known.IllegalArgumentException
- if an input parameter is out of
the valid rangepublic float getHorizontalAccuracy()
Float.NaN
indicates, that the
horizontal accuracy is unknown.
Float.NaN
if this is not knownpublic float getVerticalAccuracy()
Float.NaN
indicates, that the vertical accuracy
is unknown.Float.NaN
if this is not known.public void setHorizontalAccuracy(float horizontalAccuracy)
Float.NaN
indicates,
that the accuracy is not known.
horizontalAccuracy
- the horizontal accuracy in meters.
Float.NaN
indicates,
that the accuracy is not known.IllegalArgumentException
- if the parameter is less than 0public void setVerticalAccuracy(float verticalAccuracy)
Float.NaN
indicates,
that the accuracy is not known.
verticalAccuracy
- the vertical accuracy in meters.
Float.NaN
indicates,
that the accuracy is not known.IllegalArgumentException
- if the parameter is less than 0Copyright (c) 1990, 2012, Oracle and/or its affiliates. All rights reserved.