cds.astro
Class CheckRadius

java.lang.Object
  extended bycds.astro.CheckRadius
All Implemented Interfaces:
CheckPosition

class CheckRadius
extends java.lang.Object
implements CheckPosition

Check a Circular Target return a Vector with marked Qboxes


Field Summary
(package private)  Qbox abox
           
static boolean DEBUG
           
static int QBOX_ANY
           
static int QBOX_NONE
           
static int QBOX_SOME
           
(package private)  double radius
           
(package private)  double s2r
           
(package private)  double sh2
           
(package private)  Coocube target
           
(package private)  double[] u0
           
(package private)  double[] XY
           
 
Constructor Summary
(package private) CheckRadius(Coo c, double r)
          Constructor
 
Method Summary
 int checkTarget(int qbox)
          Verify Target in Circle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XY

double[] XY

target

Coocube target

u0

double[] u0

radius

double radius

sh2

double sh2

s2r

double s2r

abox

Qbox abox

QBOX_NONE

public static final int QBOX_NONE
See Also:
Constant Field Values

QBOX_ANY

public static final int QBOX_ANY
See Also:
Constant Field Values

QBOX_SOME

public static final int QBOX_SOME
See Also:
Constant Field Values

DEBUG

public static final boolean DEBUG
See Also:
Constant Field Values
Constructor Detail

CheckRadius

CheckRadius(Coo c,
            double r)
Constructor

Parameters:
c - the center of the target
r - the target radius, in degrees.
Method Detail

checkTarget

public int checkTarget(int qbox)
Verify Target in Circle

Specified by:
checkTarget in interface CheckPosition
Parameters:
qbox - the Qbox to check
Returns:
QBOX_NONE / QBOX_ANY / QBOX_SOME