public interface SolarPosition
To make the use of this interface more
convenient, all the methods returning positional data of the Sun are
called argumentless, requiring first the setDate method to be
called. Concrete classes implementing this interface should throw a
IllegalStateException, if one of the positional methods is
called prior to setDate.
| Modifier and Type | Interface and Description |
|---|---|
static class |
SolarPosition.Plato1
Calculates the overlap between night time and target-above-horizon
for a full year.
|
static class |
SolarPosition.Plato2
Calculates the overlap between night time and target-above-horizon
for a full year.
|
static class |
SolarPosition.Test
Test purpose.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getDec()
Returns the declination of the Sun, in radians.
|
double |
getEclipticalLongitude()
Returns the ecliptical longitude of the Sun, in radians.
|
double |
getRa()
Returns the right ascension of the Sun, in radians.
|
void |
setDate(Date time)
Sets the date at which the Sun's position should be evaluated.
|
void setDate(Date time)
Date - The date for which the solar position should be derived.double getEclipticalLongitude()
double getRa()
double getDec()