| 2324 | // a wrapper around NCheckEclipse() and NCheckEclipseLunar(). |
| 2325 | |
| 2326 | int NCheckEclipseAny(int obj1, int asp, int obj2, real *prEclipse) |
| 2327 | { |
| 2328 | int nEclipse = etUndefined; |
| 2329 | real rEclipse = 0.0; |
| 2330 | |
| 2331 | if (us.fEclipse && !us.fParallel) { |
| 2332 | if (asp == aCon) |
| 2333 | nEclipse = NCheckEclipse(obj1, obj2, &rEclipse); |
| 2334 | else if (asp == aOpp) |
| 2335 | nEclipse = NCheckEclipseLunar(us.objCenter, obj2, obj1, &rEclipse); |
| 2336 | } |
| 2337 | if (prEclipse != NULL) |
| 2338 | *prEclipse = rEclipse; |
| 2339 | return nEclipse; |
| 2340 | } |
| 2341 | |
| 2342 | |
| 2343 | #ifdef SWISS |
no test coverage detected