Package org.shredzone.commons.suncalc
Class SunPosition
java.lang.Object
org.shredzone.commons.suncalc.SunPosition
Calculates the position of the sun.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SunPosition.Parameters
compute()
Starts the computation ofSunPosition
.double
The visible sun altitude above the horizon, in degrees.double
Sun azimuth, in degrees, north-based.double
Sun's distance, in kilometers.double
The true sun altitude above the horizon, in degrees.toString()
-
Method Details
-
compute
Starts the computation ofSunPosition
.- Returns:
SunPosition.Parameters
to set.
-
getAltitude
The visible sun altitude above the horizon, in degrees.0.0
means the sun's center is at the horizon,90.0
at 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.0
means the sun's center is at the horizon,90.0
at the zenith (straight over your head).- Since:
- 2.3
- See Also:
-
getAzimuth
Sun azimuth, in degrees, north-based.This is the direction along the horizon, measured from north to east. For example,
0.0
means north,135.0
means southeast,270.0
means west. -
getDistance
Sun's distance, in kilometers. -
toString
-