MCPcopy Create free account
hub / github.com/CruiserOne/Astrolog / NCheckEclipseAny

Function NCheckEclipseAny

calc.cpp:2326–2340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2324// a wrapper around NCheckEclipse() and NCheckEclipseLunar().
2325
2326int 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

Callers 4

PrintInDaysFunction · 0.85
ChartTransitGraphFunction · 0.85
XChartTransitFunction · 0.85
ChartAspectFunction · 0.85

Calls 2

NCheckEclipseFunction · 0.85
NCheckEclipseLunarFunction · 0.85

Tested by

no test coverage detected