Class MoonPosition

java.lang.Object
org.shredzone.commons.suncalc.MoonPosition

public class MoonPosition extends Object
Calculates the position of the moon.
  • Method Details

    • compute

      Starts the computation of MoonPosition.
      Returns:
      MoonPosition.Parameters to set.
    • getAltitude

      public double 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). Atmospheric refraction is taken into account.

      See Also:
    • getTrueAltitude

      public double getTrueAltitude()
      The true 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).

      Since:
      3.8
      See Also:
    • getAzimuth

      public double 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

      public double getDistance()
      Distance to the moon in kilometers.
    • getParallacticAngle

      public double getParallacticAngle()
      Parallactic angle of the moon, in degrees.
    • toString

      public String toString()
      Overrides:
      toString in class Object