Lines 86-94
addOrbits(const double jd0, const View *view,
Link Here
|
86 |
const double period = p->Period(); |
86 |
const double period = p->Period(); |
87 |
if (period == 0) return; |
87 |
if (period == 0) return; |
88 |
|
88 |
|
|
|
89 |
// Units of orbit circumference |
89 |
const double startOrbit = currentProperties->StartOrbit(); |
90 |
const double startOrbit = currentProperties->StartOrbit(); |
90 |
const double stopOrbit = currentProperties->StopOrbit(); |
91 |
const double stopOrbit = currentProperties->StopOrbit(); |
|
|
92 |
|
93 |
// degrees |
91 |
const double delOrbit = currentProperties->DelOrbit(); |
94 |
const double delOrbit = currentProperties->DelOrbit(); |
|
|
95 |
|
92 |
const unsigned char *color = currentProperties->OrbitColor(); |
96 |
const unsigned char *color = currentProperties->OrbitColor(); |
93 |
const int thickness = currentProperties->ArcThickness(); |
97 |
const int thickness = currentProperties->ArcThickness(); |
94 |
|
98 |
|
Lines 103-112
addOrbits(const double jd0, const View *view,
Link Here
|
103 |
const double startTime = jd0 + startOrbit * period; |
107 |
const double startTime = jd0 + startOrbit * period; |
104 |
const double stopTime = jd0 + stopOrbit * period; |
108 |
const double stopTime = jd0 + stopOrbit * period; |
105 |
|
109 |
|
106 |
const int numTimes = (int) (180/delOrbit + 0.5); |
110 |
int numTimes = (int) abs(360 * startOrbit / delOrbit + 0.5); |
107 |
|
|
|
108 |
addArc(startTime, jd0, numTimes, color, thickness, view, width, height, |
111 |
addArc(startTime, jd0, numTimes, color, thickness, view, width, height, |
109 |
Prx, Pry, Prz, p, annotationMap); |
112 |
Prx, Pry, Prz, p, annotationMap); |
|
|
113 |
|
114 |
numTimes = (int) abs(360 * stopOrbit / delOrbit + 0.5); |
110 |
addArc(jd0, stopTime, numTimes, color, thickness, view, width, height, |
115 |
addArc(jd0, stopTime, numTimes, color, thickness, view, width, height, |
111 |
Prx, Pry, Prz, p, annotationMap); |
116 |
Prx, Pry, Prz, p, annotationMap); |
112 |
} |
117 |
} |