|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.grelf.astro.Dec
public class Dec
Representation of declination (celestial latitude) in a compact form, just 4 bytes of data. Accurate to 0.1 seconds of arc.
| Constructor Summary | |
|---|---|
Dec(double degrees)
|
|
Dec(double degrees,
double mins,
double secs)
Can pass in fractional degrees or minutes but will be held in normalised form with integer degrees and minutes plus fractional seconds. 10.2.1 Important change: previously the degrees part could be negative but min and sec were expected to be positive (as from a user dialogue). |
|
| Method Summary | |
|---|---|
Dec |
clone()
|
boolean |
equals(java.lang.Object other)
|
byte |
getDegree()
Range -90..+90 |
byte |
getMin()
Range -59..59 |
float |
getSec()
Range -59.9..59.9 |
int |
hashCode()
Enable objects of this class to be used as hash keys. |
double |
toDegrees()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Dec(double degrees,
double mins,
double secs)
public Dec(double degrees)
| Method Detail |
|---|
public byte getDegree()
public byte getMin()
public float getSec()
public double toDegrees()
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic Dec clone()
clone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||