This method works out the position of a binary star around it's origin.
The function prototype of this function is:
double* double_star(int year,
int month,
int day,
int hour,
int min,
double secs,
double time_offset,
double period,
double periastron,
double semi_major,
double e,
double i,
double w,
double pa);
The function of the parameters is:
Parameter |
Purpose |
---|---|
year | The year of the user. |
month | The month of the user. |
day | The day of the user. |
hour | The hour of the user. |
min | The minute of the user. |
secs | The seconds of the user. |
time_offset | The time offset of the user from UT. |
period | The period of the binary star (mean solar years). |
periastron | Epoch of periastron. |
semi_major | Semi-major axis of orbit (arcsec). |
e | Eccentricity. |
i | Inclination or orbit (degrees). |
w | Longitude of periastron (degrees). |
pa | Position angle of ascending node (degrees). |
The output is a pointer to an array of two doubles.
The value of each element in the array is:
Element |
Value held |
---|---|
0 | Angle from north (degrees). |
1 | Distance from the central star (arc seconds). |
The example is example-001.cpp.