class Misc
extends java.lang.Object
The methods and data here are static so that an object instance does not have to be created before use the methods/data in this class
Copyright (c) 2018
Modifier and Type | Field and Description |
---|---|
protected static boolean |
GETEARTH
whether to ask user for the Earth
|
protected static boolean |
GETMOON
whether to ask user for the Moon
|
protected static boolean |
GETSUN
whether to ask user for the Sun
|
protected static double |
termCriteria
Set a default termination criteria (in radians) for solving Kepler's equation
|
Constructor and Description |
---|
Misc() |
Modifier and Type | Method and Description |
---|---|
protected static void |
calcMiscData(int idx,
boolean summary)
Calculate miscellaneous data items about an object.
|
protected static double |
computeLST()
This method computes the LST for the observer's current location
and time.
|
protected static jll.celcalc.ASTUtils.ASTCoord |
getSolarSysEqCoord(int idx)
Get the equatorial coordinates for a solar system object
for the current observer.
|
protected static int |
getValidObj(boolean Sun,
boolean Earth,
boolean Moon)
Ask user for a Solar System object's name and return its index.
|
protected static double termCriteria
protected static final boolean GETSUN
protected static final boolean GETEARTH
protected static final boolean GETMOON
protected static void calcMiscData(int idx, boolean summary)
idx
- which object is of interestsummary
- true if this is the summary passprotected static double computeLST()
protected static jll.celcalc.ASTUtils.ASTCoord getSolarSysEqCoord(int idx)
idx
- index into orbital elements for the desired object,
which cannot be the Earth but can be any other
object in the orbital elements data fileprotected static int getValidObj(boolean Sun, boolean Earth, boolean Moon)
Sun
- true if the Sun is allowedEarth
- true if the Earth is allowedMoon
- true if the Moon is allowed