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).

    • 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