Package org.shredzone.commons.suncalc
Class MoonPosition
java.lang.Object
org.shredzone.commons.suncalc.MoonPosition
Calculates the position of the moon.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic MoonPosition.Parameterscompute()Starts the computation ofMoonPosition.doubleMoon altitude above the horizon, in degrees.doubleMoon azimuth, in degrees, north-based.doubleDistance to the moon in kilometers.doubleParallactic angle of the moon, in degrees.doubleThe true moon altitude above the horizon, in degrees.toString()
-
Method Details
-
compute
Starts the computation ofMoonPosition.- Returns:
MoonPosition.Parametersto set.
-
getAltitude
Moon altitude above the horizon, in degrees.0.0means the moon'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 moon altitude above the horizon, in degrees.0.0means the moon's center is at the horizon,90.0at the zenith (straight over your head).- Since:
- 3.8
- See Also:
-
getAzimuth
Moon 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
Distance to the moon in kilometers. -
getParallacticAngle
Parallactic angle of the moon, in degrees. -
toString
-