|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.aerith.misao.util.CircumArea
The CircumArea
represents a circumscribed area around
the specified circle on the celestial sphere, which consists of
the maximum and minimum value of R.A. and Decl. of the specified
circle.
Field Summary | |
private Coor |
center_coor
The R.A. |
private double |
center_decl_near_pole
The Decl. |
private double |
corner_decl_far_pole
The Decl. |
private double |
corner_decl_near_pole
The Decl. |
private double |
decl_most_north
The Decl. |
private double |
decl_most_south
The Decl. |
private static double |
sqrt2
The sqrt(2). |
private double |
width_in_RA
The difference between maximum R.A. |
Constructor Summary | |
CircumArea(Coor coor,
double radius)
Constructs a CircumArea of the specified circle. |
Method Summary | |
double |
getDeclMostNorth()
Gets the Decl. |
double |
getDeclMostSouth()
Gets the Decl. |
double |
getWidthInRA()
Gets the difference between maximum R.A. |
boolean |
inArea(Coor coor)
Judges if the specified R.A. |
boolean |
overlapsArea(Coor start_coor,
Coor end_coor)
Judges if the specified rectangle area is overlapping on this CircumArea . |
protected java.lang.String |
paramString()
Returns a raw string representation of the state of this object, for debugging use. |
java.lang.String |
toString()
Returns a string representation of the state of this object, for debugging use. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private Coor center_coor
private double center_decl_near_pole
private double corner_decl_near_pole
private double corner_decl_far_pole
private double decl_most_north
private double decl_most_south
private double width_in_RA
private static final double sqrt2
Constructor Detail |
public CircumArea(Coor coor, double radius)
CircumArea
of the specified circle.
All the parameters required to judge area overlapping, etc.
are calculated in this constructor.coor
- the R.A. and Decl. of the center.radius
- the radius of the circle in degree.Method Detail |
public double getDeclMostNorth()
public double getDeclMostSouth()
public double getWidthInRA()
public boolean overlapsArea(Coor start_coor, Coor end_coor)
CircumArea
.start_coor
- the R.A. and Decl. of the minimal corner.end_coor
- the R.A. and Decl. of the maximal corner.public boolean inArea(Coor coor)
CircumArea
.coor
- the R.A. and Decl. to judge.protected java.lang.String paramString()
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |