cds.astro
Class CircularRegion

java.lang.Object
  extended by cds.astro.AbstractRegion
      extended by cds.astro.Region
          extended by cds.astro.CircularRegion
All Implemented Interfaces:
java.io.Serializable

public class CircularRegion
extends Region

CircularRegion is a circular region on the sky, defined by its center and a radius.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class cds.astro.AbstractRegion
centroid, DISJOINT, INCLUDES, INTERSECTS, IS_PARTOF, maxrad, minrad
 
Method Summary
 double area()
          Area of circular region.
 int checkCircle(Coo centre, double radius)
          Verify intersection with another circle
 boolean checkCoo(Coo point)
          Verify point within CircularRegion
 int checkQbox(int qbox)
          Intersection of a Qbox with the Circle
 java.lang.String toString()
          Edition of a Circular region
 
Methods inherited from class cds.astro.Region
box, circle, ellipse, ellipse, polygon, rotatedBox, zone, zone
 
Methods inherited from class cds.astro.AbstractRegion
check1
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public java.lang.String toString()
Edition of a Circular region

Overrides:
toString in class Region
Returns:
ascii equivalent

area

public double area()
Area of circular region.

Overrides:
area in class Region
Returns:
Area of rgion, in square degrees

checkCoo

public boolean checkCoo(Coo point)
Verify point within CircularRegion

Overrides:
checkCoo in class Region
Parameters:
point - a position
Returns:
true if point within region.

checkCircle

public int checkCircle(Coo centre,
                       double radius)
Verify intersection with another circle

Overrides:
checkCircle in class Region
Parameters:
centre - center of another circular region
radius - radius of circle
Returns:
DISJOINT (no overlap), INCLUDES (circle inside region), IS_PARTOF (included in circle) INTERSECTS (intersection)

checkQbox

public int checkQbox(int qbox)
Intersection of a Qbox with the Circle

Overrides:
checkQbox in class AbstractRegion
Parameters:
qbox - the Qbox to check
Returns:
DISJOINT / INCLUDES / INTERSECTS