19 public (
double positionAngleDeg,
double separationArcsec)
BinaryStarOrbit(
double greenwichDateDay,
int greenwichDateMonth,
int greenwichDateYear,
string binaryName)
24 double mDeg = 360 * yYears / binaryInfo.
Period;
25 double mRad = (mDeg - 360 * (mDeg / 360).Floor()).ToRadians();
26 double eccentricity = binaryInfo.
Ecc;
29 double taPeriRad = trueAnomalyRad + binaryInfo.
LongPeri.ToRadians();
31 double y = taPeriRad.Sine() * binaryInfo.
Incl.ToRadians().Cosine();
32 double x = taPeriRad.Cosine();
34 double thetaDeg1 = aDeg + binaryInfo.
PANode;
35 double thetaDeg2 = thetaDeg1 - 360 * (thetaDeg1 / 360).Floor();
36 double rhoArcsec = rArcsec * taPeriRad.Cosine() / (thetaDeg2 - binaryInfo.
PANode).ToRadians().Cosine();
39 double separationArcsec = Math.Round(rhoArcsec, 2);
Holds information about binary star systems.
double Ecc
Eccentricity of the orbit.
double Incl
Orbital inclination.
double Period
Period of the orbit.
double EpochPeri
Epoch of the perihelion.
double LongPeri
Longitude of the perihelion.
double PANode
Position angle of the ascending node.
double Axis
Semi-major axis of the orbit.
Binary star system data manager.
static BinaryData GetBinaryInfo(string name)
Retrieve information about a specific binary star system.
Binary star calculations.
double positionAngleDeg
Calculate orbital data for binary star.
double double separationArcsec BinaryStarOrbit(double greenwichDateDay, int greenwichDateMonth, int greenwichDateYear, string binaryName)
Miscellaneous macro functions supporting the other classes.
static double CivilDateToJulianDate(double day, double month, double year)
Convert a Greenwich Date/Civil Date (day,month,year) to Julian Date.
static double Degrees(double w)
Convert W to Degrees.
static double EccentricAnomaly(double am, double ec)
Solve Kepler's equation, and return value of the eccentric anomaly in radians.
static double TrueAnomaly(double am, double ec)
Solve Kepler's equation, and return value of the true anomaly in radians.