|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcds.astro.AbstractRegion
cds.astro.Region
public class Region
Region is a Factory which implements the AbstractRegion and the constructors of the various regions.
| Field Summary |
|---|
| Fields inherited from class cds.astro.AbstractRegion |
|---|
centroid, DISJOINT, INCLUDES, INTERSECTS, IS_PARTOF, maxrad, minrad |
| Method Summary | |
|---|---|
double |
area()
Compute area of a Region (see dedicated class) |
static Region |
box(Astroframe frame,
Coo center,
double width,
double height)
Define a box from center + width + height |
int |
checkCircle(Coo point,
double r)
The method checkCircle verifies the intersection of Region with Circle. |
boolean |
checkCoo(Coo point)
The method checkCoo verifies a point lies within a region. |
static Region |
circle(Coo center,
double radius)
Circular Region is defined from a center + region. |
static Region |
ellipse(Astroframe frame,
Coo center,
double londim,
double latdim)
Define an Elliptical region. |
static Region |
ellipse(Coo center,
double a,
double b,
double pa)
Tilted elliptical region. |
static Region |
polygon(Coo[] vertices)
Define a polygonal region (convex). |
static Region |
rotatedBox(Coo center,
double dim1,
double dim2,
double posangle)
Define a rotated box from center + sides. |
java.lang.String |
toString()
Edition of a Region (see dedicated class) |
static Region |
zone(Astroframe frame,
Coo center,
double width,
double height)
Zonal region defined from a center and extensions. |
static Region |
zone(Astroframe frame,
double lon0,
double lon1,
double lat0,
double lat1)
Define a zonal region. |
| Methods inherited from class cds.astro.AbstractRegion |
|---|
check1, checkQbox |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public java.lang.String toString()
toString in class AbstractRegionpublic double area()
area in class AbstractRegionpublic boolean checkCoo(Coo point)
checkCoo in class AbstractRegionpoint - a point we want to check
public int checkCircle(Coo point,
double r)
checkCircle in class AbstractRegionpoint - a positionr - radius (degrees)
public static Region circle(Coo center,
double radius)
center - the center of the box.radius - the radius of the circular region.
public static Region box(Astroframe frame,
Coo center,
double width,
double height)
frame - the frame in which the box is expressed.
May be null (implies a unique coordinate frame)center - the center of the box.width - width of the box, in degreesheight - height of the box, in degrees
public static Region rotatedBox(Coo center,
double dim1,
double dim2,
double posangle)
center - the center of the box.dim1 - first angular size of the box, in degreesdim2 - second angular size of the box, in degreesposangle - position angle of side1 in degrees,
measured clockwise from North.
public static Region polygon(Coo[] vertices)
vertices - of the polygon.
The number of vertices should be at least 3 (for a triangle).
public static Region zone(Astroframe frame,
double lon0,
double lon1,
double lat0,
double lat1)
frame - Astroframe in which the limits are defined.
May be null when a single frame is involved.lon0 - Minimal longitude in specified framelon1 - Maximal longitude in specified framelat0 - Minimal latitude in specified framelat1 - Maximal latitude in specified frame
public static Region zone(Astroframe frame,
Coo center,
double width,
double height)
frame - Astroframe in which the limits are defined.
May be null when a single frame is involved.center - the center of the zonewidth - width of the box, in degrees (between 0 and 360)height - height of the box, in degrees (between 0 and 180)
public static Region ellipse(Astroframe frame,
Coo center,
double londim,
double latdim)
frame - Astroframe in which the ellipse is defined.
May be null when a single frame is involved.center - Position of the ellipse centerlondim - the dimension of the ellipse along longitudelatdim - the dimension of the ellipse along latitude
public static Region ellipse(Coo center,
double a,
double b,
double pa)
center - Position of the ellipse centera - the major diameter, in degreesb - the minor diameter, in degreespa - position angle of major axis, in degrees,
measured North to East.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||