java.lang.Object
org.shredzone.commons.suncalc.util.Moon

public final class Moon extends Object
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 Details

    • positionEquatorial

      public static Vector positionEquatorial(JulianDate date)
      Calculates the equatorial position of the moon.
      Parameters:
      date - JulianDate to be used
      Returns:
      Vector of equatorial moon position
    • position

      public static Vector position(JulianDate date)
      Calculates the geocentric position of the moon.
      Parameters:
      date - JulianDate to be used
      Returns:
      Vector of geocentric moon position
    • positionHorizontal

      public static Vector positionHorizontal(JulianDate date, double lat, double lng)
      Calculates the horizontal position of the moon.
      Parameters:
      date - JulianDate to be used
      lat - Latitude, in radians
      lng - Longitute, in radians
      Returns:
      Vector of horizontal moon position
    • positionTopocentric

      public static Vector positionTopocentric(JulianDate date, double lat, double lng, double elev)
      Calculates the topocentric position of the moon.

      Atmospheric refraction is not taken into account.

      Parameters:
      date - JulianDate to be used
      lat - Latitude, in radians
      lng - Longitute, in radians
      elev - Elevation, in meters
      Returns:
      Vector of topocentric moon position
      Since:
      3.9
    • angularRadius

      public static double angularRadius(double distance)
      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: