|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.webtoolkit.jwt.WGoogleMap.Coordinate
public static class WGoogleMap.Coordinate
A geographical coordinate (latitude/longitude).
| Constructor Summary | |
|---|---|
WGoogleMap.Coordinate()
Default constructor. |
|
WGoogleMap.Coordinate(double lat,
double lon)
Creates with given latitude and longitude. |
|
| Method Summary | |
|---|---|
double |
distanceTo(WGoogleMap.Coordinate rhs)
Calculates the distance between two points in km (approximate). |
double |
getLatitude()
Returns the latitude. |
double |
getLongitude()
Returns the longitude. |
void |
setLatitude(double latitude)
Sets the latitude. |
void |
setLongitude(double longitude)
Sets the longitude. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WGoogleMap.Coordinate()
public WGoogleMap.Coordinate(double lat,
double lon)
| Method Detail |
|---|
public void setLatitude(double latitude)
public void setLongitude(double longitude)
public double getLatitude()
public double getLongitude()
public double distanceTo(WGoogleMap.Coordinate rhs)
The calculation uses a sphere. Results can be out by 0.3%.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||