twaver.gis.utils
Class GeoCoordinate

java.lang.Object
  extended byjava.awt.geom.Point2D
      extended byjava.awt.geom.Point2D.Double
          extended bytwaver.gis.utils.GeoCoordinate
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class GeoCoordinate
extends java.awt.geom.Point2D.Double
implements java.io.Serializable

A GeoCoordinate instance representing a location in geographical coordinate space, specified in double precision.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.awt.geom.Point2D
java.awt.geom.Point2D.Double, java.awt.geom.Point2D.Float
 
Field Summary
 
Fields inherited from class java.awt.geom.Point2D.Double
x, y
 
Constructor Summary
GeoCoordinate()
           
GeoCoordinate(double longitude, double latitude)
           
 
Method Summary
 boolean equals(java.lang.Object target)
           
 double getLatitude()
          Gets the latitude
 double getLongitude()
          Gets the longitude.
 java.lang.String toString()
           
 
Methods inherited from class java.awt.geom.Point2D.Double
getX, getY, setLocation
 
Methods inherited from class java.awt.geom.Point2D
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, hashCode, setLocation
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeoCoordinate

public GeoCoordinate()

GeoCoordinate

public GeoCoordinate(double longitude,
                     double latitude)
Method Detail

getLatitude

public double getLatitude()
Gets the latitude

Returns:
the latitude

getLongitude

public double getLongitude()
Gets the longitude.

Returns:
the longitude.

equals

public boolean equals(java.lang.Object target)

toString

public java.lang.String toString()