Class Moon
java.lang.Object
org.shredzone.commons.suncalc.util.Moon
Calculations and constants for the Moon.
- See Also:
-
- "Astronomy on the Personal Computer, 4th edition (Oliver Montenbruck, Thomas Pfleger) - ISBN 978-3-540-67221-0"
-
Method Summary
Modifier and TypeMethodDescriptionstatic doubleangularRadius(double distance) Returns the angular radius of the moon.static Vectorposition(JulianDate date) Calculates the geocentric position of the moon.static VectorpositionEquatorial(JulianDate date) Calculates the equatorial position of the moon.static VectorpositionHorizontal(JulianDate date, double lat, double lng) Calculates the horizontal position of the moon.static VectorpositionTopocentric(JulianDate date, double lat, double lng, double elev) Calculates the topocentric position of the moon.
-
Method Details
-
positionEquatorial
Calculates the equatorial position of the moon.- Parameters:
date-JulianDateto be used- Returns:
Vectorof equatorial moon position
-
position
Calculates the geocentric position of the moon.- Parameters:
date-JulianDateto be used- Returns:
Vectorof geocentric moon position
-
positionHorizontal
Calculates the horizontal position of the moon.- Parameters:
date-JulianDateto be usedlat- Latitude, in radianslng- Longitute, in radians- Returns:
Vectorof horizontal moon position
-
positionTopocentric
Calculates the topocentric position of the moon.Atmospheric refraction is not taken into account.
- Parameters:
date-JulianDateto be usedlat- Latitude, in radianslng- Longitute, in radianselev- Elevation, in meters- Returns:
Vectorof topocentric moon position- Since:
- 3.9
-
angularRadius
Returns the angular radius of the moon.- Parameters:
distance- Distance of the moon, in kilometers.- Returns:
- Angular radius of the moon, in radians.
- See Also:
-