public class Region
extends java.lang.Object
Constructor and Description |
---|
Region(double xMin,
double xMax,
double yMin,
double yMax)
default constructor
|
Modifier and Type | Method and Description |
---|---|
double[][] |
getPolReg()
provides polar coordinates of the region vertices
|
java.util.ArrayList |
getVertices() |
boolean |
inReg(double ra,
double dec)
return true if the point ra,dec is inside region
|
boolean |
inRegPol(double phi,
double theta)
return true if point phi, theta is inside region
|
java.util.ArrayList |
pixelize(double precision)
divides region on HealPix pixels of given size including
pixels that only partly inside the region
|
public Region(double xMin, double xMax, double yMin, double yMax)
xMin
- ra min in degreesxMax
- ra max in degreesyMin
- dec min in degreesyMax
- dec max in degreespublic boolean inReg(double ra, double dec)
ra
- in degreesdec
- in degreespublic boolean inRegPol(double phi, double theta)
phi
- in radianstheta
- in radianspublic java.util.ArrayList getVertices()
public java.util.ArrayList pixelize(double precision) throws java.lang.Exception
precision
- - angular size of the division element in arcsecjava.lang.Exception
public double[][] getPolReg()