public final class GeoPosition extends Object
Constructor and Description |
---|
GeoPosition(double longitude,
double latitude)
Constructs a geo position.
|
GeoPosition(double longitude,
double latitude,
Double altitude)
Constructs a geo position.
|
Modifier and Type | Method and Description |
---|---|
int |
count()
Gets the number of coordinates used to compose the position.
|
boolean |
equals(Object obj) |
Double |
getAltitude()
The altitude of the geometric position.
|
double |
getLatitude()
The latitudinal position of the geometric position.
|
double |
getLongitude()
The longitudinal position of the geometric position.
|
int |
hashCode() |
String |
toString() |
public GeoPosition(double longitude, double latitude)
longitude
- Longitudinal position.latitude
- Latitudinal position.public GeoPosition(double longitude, double latitude, Double altitude)
longitude
- Longitudinal position.latitude
- Latitudinal position.altitude
- Altitude position.public double getLongitude()
public double getLatitude()
public Double getAltitude()
public int count()
This will return either 2 or 3 depending on whether altitude is set
.
Copyright © 2021 Microsoft Corporation. All rights reserved.