public class MoonPosition
extends java.lang.Object
implements java.io.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(java.lang.Object obj) |
double |
getAzimuth()
Obtains the azimuth of moon in degrees (compass orientation).
|
double |
getDeclination()
Obtains the declination of moon 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 of moon in degrees.
|
int |
hashCode() |
java.lang.String |
toString() |
public 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 double getRightAscension()
Obtains the right ascension of moon in degrees.
public double getDeclination()
Obtains the declination of moon in degrees.
public 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.
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object