public class DiscTest
extends java.lang.Object
Constructor and Description |
---|
DiscTest() |
Modifier and Type | Method and Description |
---|---|
void |
checkOverlap(int order,
double raDeg1,
double decDeg1,
double raDeg2,
double decDeg2) |
(package private) static double |
haversineSeparationFormula(double ra1,
double dec1,
double ra2,
double dec2)
Haversine formula for spherical trigonometry.
|
(package private) static java.util.Collection |
intersection(java.util.Collection c1,
java.util.Collection c2) |
static void |
main(java.lang.String[] args) |
(package private) static long |
orderToNside(int order) |
java.util.Collection |
queryDisc(int order,
double ra,
double dec,
double radius) |
java.lang.String |
report() |
public void checkOverlap(int order, double raDeg1, double decDeg1, double raDeg2, double decDeg2) throws java.lang.Exception
java.lang.Exception
public java.util.Collection queryDisc(int order, double ra, double dec, double radius)
public java.lang.String report()
static long orderToNside(int order)
static java.util.Collection intersection(java.util.Collection c1, java.util.Collection c2)
static double haversineSeparationFormula(double ra1, double dec1, double ra2, double dec2)
This implementation derives from Bob Chamberlain's contribution to the comp.infosystems.gis FAQ; he cites R.W.Sinnott, "Virtues of the Haversine", Sky and Telescope vol.68, no.2, 1984, p159.
ra1
- right ascension of point 1 in radiansdec1
- declination of point 1 in radiansra2
- right ascension of point 2 in radiansdec2
- declination of point 2 in radianspublic static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception