public class Declination
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
double |
degrees |
double |
minutes |
double |
seconds |
| Constructor and Description |
|---|
Declination(Declination dec)
Class copy constructor
|
Declination(double decimal)
Class constructor, given the declination in decimal degrees.
|
Declination(double degrees,
double minutes,
double seconds)
Class constructor, given the declination in mixed format.
|
| Modifier and Type | Method and Description |
|---|---|
double |
convertToDecimalDegrees()
Gets the declination in decimal degrees.
|
java.lang.String |
toString()
Gets a string representation of the Declination.
|
java.lang.String |
toStringDecimal()
Gets a string representation of the declination in decimal degrees with 6 decimal digits
|
java.lang.String |
toStringFormatted()
Gets a string representation of the declination using superscripts to indicate the units.
|
java.lang.String |
toStringSemicolon()
Gets a string representation of the declination with semicolon delimiter.
|
public double degrees
public double minutes
public double seconds
public Declination(double degrees,
double minutes,
double seconds)
degrees - the degrees part of the mixed numberminutes - the minutes part of the mixed numberseconds - the seconds part of the mixed numberpublic Declination(double decimal)
decimal - the declination in decimal degreespublic Declination(Declination dec)
dec - public double convertToDecimalDegrees()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStringDecimal()
public java.lang.String toStringSemicolon()
public java.lang.String toStringFormatted()