public class MoonPosition extends Object implements EquatorialCoordinates, Serializable
Contains methods for calculating the position of the moon.
The position refers to the gemometric center of the moon.
| Modifier and Type | Method and Description |
|---|---|
static MoonPosition |
at(Moment moment,
GeoLocation location)
Calculates the position of moon at given moment and geographical location.
|
boolean |
equals(Object obj) |
double |
getAzimuth()
Obtains the azimuth of moon in degrees (compass orientation).
|
double |
getDeclination()
Obtains the declination in degrees.
|
double |
getDistance()
Obtains the distance between the centers of earth and moon in kilometers.
|
double |
getElevation()
Obtains the elevation of moon relative to the horizon in degrees.
|
double |
getRightAscension()
Obtains the right ascension in degrees.
|
int |
hashCode() |
static Zodiac.Event |
inConstellationOf(Zodiac zodiac)
Determines the event when the moon enters or exits given zodiac constellation.
|
static Moment |
inNextApogeeAfter(Moment moment)
Obtains the time of next apogee after given moment.
|
static Moment |
inNextPerigeeAfter(Moment moment)
Obtains the time of next perigee after given moment.
|
static Zodiac.Event |
inSignOf(Zodiac zodiac)
Determines the event when the moon enters or exits given zodiac sign (for horoscope purpose).
|
String |
toString() |
getRightAscensionHMSpublic static MoonPosition at(Moment moment, GeoLocation location)
Calculates the position of moon at given moment and geographical location.
moment - the time when the position of moon is to be determinedlocation - geographical location of observerpublic static Zodiac.Event inConstellationOf(Zodiac zodiac)
Determines the event when the moon enters or exits given zodiac constellation.
zodiac - the astronomical zodiac constellation defined by IAUpublic static Zodiac.Event inSignOf(Zodiac zodiac)
Determines the event when the moon enters or exits given zodiac sign (for horoscope purpose).
zodiac - the astronomical zodiac signIllegalArgumentException - if the zodiac is Zodiac.OPHIUCHUSpublic static Moment inNextApogeeAfter(Moment moment)
Obtains the time of next apogee after given moment.
moment - the moment after which the time of next apogee is to be determinedMoment in minute precisionIllegalArgumentException - if the Julian day of result is not in supported rangepublic static Moment inNextPerigeeAfter(Moment moment)
Obtains the time of next perigee after given moment.
Note: The perigee time might deviate from exact astronomical calculations by several minutes in some cases so this method represents a compromise between speed and accuracy.
moment - the moment after which the time of next perigee is to be determinedMoment in minute precisionIllegalArgumentException - if the Julian day of result is not in supported rangepublic double getRightAscension()
EquatorialCoordinatesObtains the right ascension in degrees.
getRightAscension in interface EquatorialCoordinatespublic double getDeclination()
EquatorialCoordinatesObtains the declination in degrees.
getDeclination in interface EquatorialCoordinatespublic double getAzimuth()
Obtains the azimuth of moon in degrees (compass orientation).
The azimuth is the result of a coordinate transformation of right ascension and declination to the horizon system.
public double getElevation()
Obtains the elevation of moon relative to the horizon in degrees.
The elevation is the result of a coordinate transformation of right ascension and declination to the horizon system.
public double getDistance()
Obtains the distance between the centers of earth and moon in kilometers.
Copyright © 2014–2021. All rights reserved.