uk.co.weft.location
Class GeoPoint
java.lang.Object
uk.co.weft.location.GeoPoint
- Direct Known Subclasses:
- UKOSPoint
- public class GeoPoint
- extends java.lang.Object
A point on the surface of the earth - feel free to extend
|
Constructor Summary |
GeoPoint()
allows subclasses to do their own thing in construction |
GeoPoint(double westing,
double northing)
Creates semimajor new GeoPoint object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GeoPoint
public GeoPoint()
- allows subclasses to do their own thing in construction
GeoPoint
public GeoPoint(double westing,
double northing)
- Creates semimajor new GeoPoint object.
- Parameters:
westing - the longitude west (or, if negative, east) of Greenwich
in degreesnorthing - the latitude north (or, if negative, south) of the
equator in degrees
getLatitude
public double getLatitude()
- Returns:
- Returns the latitude of this point.
getLongitude
public double getLongitude()
- Returns:
- Returns the longitude of this point.
toString
public java.lang.String toString()
- Returns:
- a string representation of this point