|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectuk.me.jstott.coordconv.LatitudeLongitude
An object to represent a latitude and longitude pair
| Constructor Summary | |
LatitudeLongitude(double lat,
double lng)
Construct a latitude and longitude pair |
|
LatitudeLongitude(int degreesN,
int minutesN,
double secondsN,
int degreesE,
int minutesE,
double secondsE)
Construct a latitude and longitude pair |
|
| Method Summary | |
double |
getLatitude()
Get the latitude |
double |
getLongitude()
Get the longitude |
void |
setLatitude(double d)
Set the latitude |
void |
setLongitude(double d)
Set the longitude |
java.lang.String |
toString()
Get a string representation of the latitude and longitude in the form 52°39'27.2531"N 1°43'4.5177"E |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public LatitudeLongitude(double lat,
double lng)
lat - the latitudelng - the longitude
public LatitudeLongitude(int degreesN,
int minutesN,
double secondsN,
int degreesE,
int minutesE,
double secondsE)
degreesN - degrees of latitudeminutesN - minutes of latitudesecondsN - seconds of latitudedegreesE - degrees of longitudeminutesE - minutes of longitudesecondsE - seconds of longitude| Method Detail |
public double getLatitude()
public double getLongitude()
public void setLatitude(double d)
d - the new value of the latitudepublic void setLongitude(double d)
d - the new value of the longitudepublic java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||