public class SunPosition extends Object implements SolarPosition
| Modifier and Type | Class and Description |
|---|---|
static class |
SunPosition.Test
Testing purpose mainly.
|
SolarPosition.Plato1, SolarPosition.Plato2| Modifier and Type | Field and Description |
|---|---|
private static double |
ASUN
The constant coefficient.
|
private static double |
BSUN
The linear coefficient.
|
private Date |
when
The date for which the sun position is valid.
|
| Constructor and Description |
|---|
SunPosition()
Constructs a new moon position object.
|
SunPosition(Date fordate)
Constructs a new moon position object for the given date.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getDec()
Returns the declination of the moon for the center of the earth
in radians.
|
double |
getDistance() |
double |
getEclipticalLongitude()
Returns the ecliptical longitude of the Sun for the center of the earth
in radians.
|
double |
getRa()
Returns the right ascension of the moon for the center of the earth
in radians.
|
void |
setDate(Date fordate)
Sets a (new) date for the moon position object.
|
private static final double ASUN
private static final double BSUN
private Date when
public SunPosition()
public SunPosition(Date fordate)
public void setDate(Date fordate)
setDate in interface SolarPositionpublic double getEclipticalLongitude()
getEclipticalLongitude in interface SolarPositionIllegalArgumentException - If no date was set.public double getDistance()
public double getRa()
getRa in interface SolarPositionIllegalArgumentException - If no date was set.public double getDec()
getDec in interface SolarPositionIllegalArgumentException - If no date was set.