public class SunPosition
extends java.lang.Object
implements java.io.Serializable
Contains methods for calculating the position of the sun.
The position refers to the gemometric center of the sun.
| Modifier and Type | Method and Description |
|---|---|
static SunPosition |
at(Moment moment,
GeoLocation location)
Calculates the position of sun at given moment and geographical location.
|
boolean |
equals(java.lang.Object obj) |
double |
getAzimuth()
Obtains the azimuth of sun in degrees (compass orientation).
|
double |
getDeclination()
Obtains the declination of sun in degrees.
|
double |
getElevation()
Obtains the elevation of sun relative to the horizon in degrees.
|
double |
getRightAscension()
Obtains the right ascension of sun in degrees.
|
int |
hashCode() |
java.lang.String |
toString() |
public static SunPosition at(Moment moment, GeoLocation location)
Calculates the position of sun at given moment and geographical location.
moment - the time when the position of sun is to be determinedlocation - geographical location of observerpublic double getRightAscension()
Obtains the right ascension of sun in degrees.
public double getDeclination()
Obtains the declination of sun in degrees.
public double getAzimuth()
Obtains the azimuth of sun in degrees (compass orientation).
The azimuth is the result of a coordinate transformation of right ascension and declination to the horizon system.
public double getElevation()
Obtains the elevation of sun relative to the horizon in degrees.
The elevation is the result of a coordinate transformation of right ascension and declination to the horizon system.
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object