public final class Position
extends java.lang.Object
| Constructor | Description |
|---|---|
Position(double latitude,
double longitude) |
Construct a new position with the specified
latitude and
longitude. |
| Modifier and Type | Method | Description |
|---|---|---|
double |
getLatitude() |
Return the latitude coordinate of the position.
|
double |
getLongitude() |
Return the longitude coordinate of the position.
|
public Position(double latitude,
double longitude)
latitude and
longitude.latitude - the latitude coordinate of the new positionlongitude - the longitude coordinate of the new positionpublic final double getLatitude()
public final double getLongitude()