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