Package org.shredzone.commons.suncalc
Class SunPosition
java.lang.Object
org.shredzone.commons.suncalc.SunPosition
Calculates the position of the sun.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SunPosition.Parameterscompute()Starts the computation ofSunPosition.doubleThe visible sun altitude above the horizon, in degrees.doubleSun azimuth, in degrees, north-based.doubleSun's distance, in kilometers.doubleThe true sun altitude above the horizon, in degrees.toString()
-
Method Details
-
compute
Starts the computation ofSunPosition.- Returns:
SunPosition.Parametersto set.
-
getAltitude
The visible sun altitude above the horizon, in degrees.0.0means the sun's center is at the horizon,90.0at the zenith (straight over your head). Atmospheric refraction is taken into account.- See Also:
-
getTrueAltitude
The true sun altitude above the horizon, in degrees.0.0means the sun's center is at the horizon,90.0at the zenith (straight over your head).- See Also:
-
getAzimuth
Sun azimuth, in degrees, north-based.This is the direction along the horizon, measured from north to east. For example,
0.0means north,135.0means southeast,270.0means west. -
getDistance
Sun's distance, in kilometers. -
toString
-