public static short State(
ref double[] Jed,
Target Target,
ref double[] TargetPos,
ref double[] TargetVel
)Public Shared Function State (
ByRef Jed As Double(),
Target As Target,
ByRef TargetPos As Double(),
ByRef TargetVel As Double()
) As Short
0 ...everything OK
1 ...error reading ephemeris file
2 ...epoch out of range.
= 0: Mercury, 1: Venus,
= 2: Earth-Moon barycenter, 3: Mars,
= 4: Jupiter, 5: Saturn,
= 6: Uranus, 7: Neptune,
= 8: Pluto, 9: geocentric Moon,
=10: Sun.
NOTE 1. For ease in programming, the user may put the entire epoch in jed[0] and set jed[1] = 0. For maximum interpolation accuracy, set jed[0] = the most recent midnight at or before interpolation epoch, and set jed[1] = fractional part of a day elapsed between jed[0] and epoch. As an alternative, it may prove convenient to set jed[0] = some fixed epoch, such as start of the integration and jed[1] = elapsed interval between then and epoch.