Coordinates.java
1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
* ESO Archive
*
* $Id: Coordinates.java,v 1.1.1.1 2009/02/17 22:50:10 abrighto Exp $
*
* who when what
* -------------- ---------- ----------------------------------------
* Allan Brighton 1999/05/18 Created
*/
package jsky.coords;
/**
* Abstract interface for coordinates. This interface defines
* the common methods for all image coordinate systems used.
*/
public abstract interface Coordinates {
/** Returns the name of the coordinate system as a string. */
public String getCoordinateSystemName();
/**
* Return the coordinates as a string.
*/
public String toString();
/**
* 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, ...).
*
* @param pos The other point.
*
* @return The distance to the given point.
*/
public double dist(Coordinates pos);
/** return the X coordinate as a double */
public double getX();
/** return the Y coordinate as a double */
public double getY();
}