|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcds.astro.AbstractRegion
public abstract class AbstractRegion
AbstractRegion is an abstract class which defines regions on the celestial sphere. Extensions are Circle (circular target), Convex, Zone, Ellipse 5 abstract methods are required:
Field Summary | |
---|---|
Coo |
centroid
The region center is called 'centroid' |
static int |
DISJOINT
DISJOINT is the status for non-overlapping regions. |
static int |
INCLUDES
INCLUDES indicates the region fully includes its argument. |
static int |
INTERSECTS
INTERSECTS is the status for overlapping regions. |
static int |
IS_PARTOF
IS_PARTOF indicates the region is fully included in its argument. |
double |
maxrad
radius (degrees) of Circle centered in centroid which fully includes the region. |
double |
minrad
radius (degrees) of Circle centered in centroid fully included in region. |
Constructor Summary | |
---|---|
AbstractRegion()
|
Method Summary | |
---|---|
abstract double |
area()
Computation of the area of a region |
int |
check1(Coo centre,
double radius)
This method check1 is a broad approximation of intersections. |
abstract int |
checkCircle(Coo centre,
double r)
The method checkCircle verifies the intersection of Region with Circle. |
abstract boolean |
checkCoo(Coo point)
The method checkCoo verifies a point lies within a region. |
int |
checkQbox(int qbox)
The method checkQbox verifies the intersection of a Qbox with the region. |
abstract java.lang.String |
toString()
Edition of a Region |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DISJOINT
public static final int INTERSECTS
public static final int INCLUDES
public static final int IS_PARTOF
public Coo centroid
public double minrad
public double maxrad
Constructor Detail |
---|
public AbstractRegion()
Method Detail |
---|
public abstract java.lang.String toString()
toString
in class java.lang.Object
public abstract double area()
public abstract boolean checkCoo(Coo point)
point
- a point we want to check
public abstract int checkCircle(Coo centre, double r)
centre
- center of circler
- radius (degrees) of circle
public final int check1(Coo centre, double radius)
centre
- center of circleradius
- radius (degrees) of circle
public int checkQbox(int qbox)
qbox
- an integer representing a Qbox number
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |