jsky.coords
Interface Coordinates

All Known Subinterfaces:
WorldCoordinates
All Known Implementing Classes:
ImageCoords, WorldCoords

public interface Coordinates

Abstract interface for coordinates. This interface defines the common methods for all image coordinate systems used.


Method Summary
 double dist(Coordinates pos)
          Return the distance between this position and the given one in the standard units of the coordinate system being used (arcmin for WorldCoords, pixels for ImageCoords, ...).
 java.lang.String getCoordinateSystemName()
          Returns the name of the coordinate system as a string.
 double getX()
          return the X coordinate as a double
 double getY()
          return the Y coordinate as a double
 java.lang.String toString()
          Return the coordinates as a string.
 

Method Detail

getCoordinateSystemName

java.lang.String getCoordinateSystemName()
Returns the name of the coordinate system as a string.


toString

java.lang.String toString()
Return the coordinates as a string.

Overrides:
toString in class java.lang.Object

dist

double dist(Coordinates pos)
Return the distance between this position and the given one in the standard units of the coordinate system being used (arcmin for WorldCoords, pixels for ImageCoords, ...).

Parameters:
pos - The other point.
Returns:
The distance to the given point.

getX

double getX()
return the X coordinate as a double


getY

double getY()
return the Y coordinate as a double