|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectGeoPoint
public class GeoPoint
| Constructor Summary | |
|---|---|
GeoPoint()
|
|
GeoPoint(char latdir,
double lat,
char londir,
double lon)
Geographic Point - Decimal Degrees Format 1 |
|
GeoPoint(char latdir,
int latdeg,
int latmin,
int latsec,
char londir,
int londeg,
int lonmin,
int lonsec)
Geographic Point -- Degrees, Minutes, Seconds Format 1 |
|
GeoPoint(double lat,
char latdir,
double lon,
char londir)
Geographic Point - Decimal Degrees Format 2 |
|
GeoPoint(int latdeg,
int latmin,
int latsec,
char latdir,
int londeg,
int lonmin,
int lonsec,
char londir)
Geographic Point -- Degrees, Minutes, Seconds Format 2 |
|
| Method Summary | |
|---|---|
double |
distanceInMiles(GeoPoint P)
Distance Calculator |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GeoPoint()
public GeoPoint(char latdir,
int latdeg,
int latmin,
int latsec,
char londir,
int londeg,
int lonmin,
int lonsec)
latdir - latitude direction (N/S)latdeg - latitude degreeslatmin - latitude minuteslatsec - latitude secondslondir - longitude direction (E/W)londeg - longitude degreeslonmin - longitude minuteslonsec - longitude seconds
public GeoPoint(int latdeg,
int latmin,
int latsec,
char latdir,
int londeg,
int lonmin,
int lonsec,
char londir)
latdeg - latitude degreeslatmin - latitude minuteslatsec - latitude secondslatdir - latitude direction (N/S)londeg - longitude degreeslonmin - longitude minuteslonsec - longitude secondslondir - longitude direction (E/W)
public GeoPoint(char latdir,
double lat,
char londir,
double lon)
latdir - latitude direction (N/S)lat - latitude specified as a decimal degreeslondir - longitude direction (E/W)lon - longitude specified as decimal degrees
public GeoPoint(double lat,
char latdir,
double lon,
char londir)
lat - latitude specified as a decimal degreeslatdir - latitude direction (N/S)lon - longitude specified as decimal degreeslondir - longitude direction (E/W)| Method Detail |
|---|
public double distanceInMiles(GeoPoint P)
P - another GeoPoint object
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||