|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdriver.ted.astro.T_LunarCoords
public class T_LunarCoords
Title: T_LunarCoords Description: This file implements the T_LunarCoords class Copyright: (c) 2002 - 2006
| Field Summary | |
|---|---|
static int |
FIRST_QUARTER
First Quarter identifier |
static int |
FULL_MOON
Full moon identifier |
static int |
LAST_QUARTER
Last quarter identifier |
static int |
NEW_MOON
New Moon identifier |
| Constructor Summary | |
|---|---|
T_LunarCoords()
Constructor: initializes with current system time |
|
T_LunarCoords(T_JulianDate J)
Constructor: initializes with time defined by T_JulianDate object |
|
| Method Summary | |
|---|---|
double |
getAlpha()
Returns the apparent Right Ascension of the moon at the given time |
double |
getDelta()
Return the apparent Declination |
double |
getEquatorialParallax()
Returns the Moon's equatorial Parallax in Radians |
double |
getIllumination(T_JulianDate J)
Public function to return a value between 0 and 1 representing the percent of the lit moon's face facing Earth. |
double |
getPhase(T_JulianDate today,
double offset,
int phaseType)
Returns the time of the specified phase, including the specified time offset |
static void |
main(java.lang.String[] args)
Test program |
void |
setDateTime(T_JulianDate J)
Sets the date and time for this object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NEW_MOON
public static final int FIRST_QUARTER
public static final int FULL_MOON
public static final int LAST_QUARTER
| Constructor Detail |
|---|
public T_LunarCoords()
public T_LunarCoords(T_JulianDate J)
T_JulianDate object
J - The T_JulianDate object defining the time| Method Detail |
|---|
public void setDateTime(T_JulianDate J)
J - T_JulianDate object defining the new time.public double getIllumination(T_JulianDate J)
J - The T_JulianDate to use for the calculation
public static void main(java.lang.String[] args)
args - argspublic double getAlpha()
public double getDelta()
public double getEquatorialParallax()
public double getPhase(T_JulianDate today,
double offset,
int phaseType)
today - The T_JulianDate object specifying the timeoffset - The time offset in hoursphaseType - The type of phase requested - use one of the predefined objects in the class.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||