public class Declination
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
double |
degrees |
double |
minutes |
double |
seconds |
| Constructor and Description |
|---|
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.
|
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 double ConvertToDecimalDegrees()
public java.lang.String toString()
toString in class java.lang.Object