|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.cone.SkyBox
public class SkyBox
Defines a region of the celestial sphere which is rectangular in Right Ascension and Declination coordinates.
This class just aggregates a two-element double[] array (x1,x2) for each of right ascension and declination. The meaning in each case is as follows:
Values should be in the range 0<=ra<2*PI and -PI/2<dec<+PI (or equivalent in degrees if degrees are being used).
The static getConeBox(double, double, double)
method is provided to generate a SkyBox
suitable for cone search queries.
Method Summary | |
---|---|
static double |
calculateDeltaRa(double dec,
double sr)
Works out the minimum change in Right Ascension which will encompass all points within a given search radius at a given central declination. |
static SkyBox |
getConeBox(double ra,
double dec,
double sr)
Returns a minimal SkyBox which encloses a given cone using radians. |
double[] |
getDecRange()
Returns declination range. |
double[] |
getRaRange()
Returns right ascension range. |
SkyBox |
toDegrees()
Converts the units of this SkyBox from radians to degrees. |
SkyBox |
toRadians()
Converts the units of this SkyBox from degrees to radians. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public double[] getRaRange()
public double[] getDecRange()
public SkyBox toDegrees()
public SkyBox toRadians()
public static SkyBox getConeBox(double ra, double dec, double sr)
ra
- cone centre right ascension in radiansdec
- cone centre declination in radianssr
- cone radius in radians
public static double calculateDeltaRa(double dec, double sr)
dec
- declination of the centre of the search region
in radianssr
- radius of the search region in radians
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |