|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WorldCoordinates
Interface for representing world coordinates (right-ascension, declination, stored as J2000 internally).
Method Summary | |
---|---|
WorldCoordinates[] |
box(double radius)
Given a radius in arcmin, return an array {pos1, pos2} with the 2 endpoints that form a box with center at "this" position. |
double[] |
center(WorldCoordinates pos1,
WorldCoordinates pos2)
Given the endpoints of a box (pos1, pos2), return an array containing the center ra, dec in degrees, as well as the width, height, and radius of the box in arcmin. |
double[] |
dispos(WorldCoordinates pos)
return the distance between this position and the given one in arcmin and also set the position angle |
java.lang.String[] |
format()
Format RA and DEC in h:m:s [+-]d:m:s format in J2000 and return them as a 2 element String array. |
java.lang.String[] |
format(double equinox)
Format RA and DEC in h:m:s [+-]d:m:s format in the given equinox and return them as a 2 element String array. |
DMS |
getDec()
return the DEC value in J2000 |
double |
getDecDeg()
return the DEC value in deg J2000 |
HMS |
getRA()
return the RA value in J2000 |
double[] |
getRaDec(double equinox)
Return RA and DEC in degrees as an array of 2 doubles {ra, dec} in the given equinox. |
double |
getRaDeg()
return the RA value in deg J2000 |
java.lang.String |
toString()
Return the coordinates as a string in h:m:s [+-]d:m:s format |
Methods inherited from interface jsky.coords.Coordinates |
---|
dist, getCoordinateSystemName, getX, getY |
Method Detail |
---|
HMS getRA()
DMS getDec()
double getRaDeg()
double getDecDeg()
java.lang.String toString()
toString
in interface Coordinates
toString
in class java.lang.Object
java.lang.String[] format(double equinox)
java.lang.String[] format()
double[] getRaDec(double equinox)
double[] dispos(WorldCoordinates pos)
pos
- The other point.
WorldCoordinates[] box(double radius)
radius
- The radius in arcmin.
double[] center(WorldCoordinates pos1, WorldCoordinates pos2)
pos1
- The first endpoint of the box.pos2
- The second endpoint of the box.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |