|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.grelf.Angle
net.grelf.astro.Dec
public class Dec
Representation of declination (celestial latitude).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.grelf.Angle |
|---|
Angle.Units |
| Field Summary |
|---|
| Fields inherited from class net.grelf.Angle |
|---|
DEGREE_SYMBOL, FOUR_PI, TWO_PI, valueRadians |
| Constructor Summary | |
|---|---|
Dec(Angle angle)
|
|
Dec(double degrees)
|
|
Dec(double degrees,
double sigmaDegrees)
|
|
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). |
|
Dec(double degrees,
double mins,
double secs,
double sigmaDegrees)
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()
Returns a new Dec object with the same data. |
boolean |
equals(java.lang.Object other)
|
byte |
getDegree()
Range -90..+90 |
byte |
getMinute()
Range -59..59 |
float |
getSecond()
Range -59.99999..59.99999 |
int |
hashCode()
Enable objects of this class to be used as hash keys. |
double |
toDegrees()
|
java.lang.String |
toString()
Units are radians. |
| Methods inherited from class net.grelf.Angle |
|---|
acos, add, angleStatistics, angleStatistics, asin, atan, atan2, compareTo, cos, difference, getDegrees, getHours, getRadians, getStdErrDegrees, getStdErrHours, getStdErrRadians, in360, multiply, sin, subtract, tan, 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,
double sigmaDegrees)
public Dec(double degrees,
double mins,
double secs)
public Dec(double degrees,
double sigmaDegrees)
public Dec(double degrees)
public Dec(Angle angle)
| Method Detail |
|---|
public byte getDegree()
public byte getMinute()
public float getSecond()
public double toDegrees()
public boolean equals(java.lang.Object other)
equals in class Anglepublic int hashCode()
hashCode in class Anglepublic Dec clone()
clone in class Anglepublic java.lang.String toString()
Angle
toString in class Angle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||