public class Position
extends java.lang.Object
| Constructor and Description |
|---|
Position(double latitude,
double longitude)
Construct a new position with the specified
latitude and
longitude. |
| Modifier and Type | Method and 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 double getLatitude()
public double getLongitude()