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

Function MinDifference

general.cpp:522–530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

520// ahead or behind the first one in a circular zodiac.
521
522real MinDifference(real deg1, real deg2)
523{
524 real r;
525
526 r = deg2 - deg1;
527 if (RAbs(r) < rDegHalf)
528 return r;
529 return r >= 0 ? r - rDegMax : r + rDegMax;
530}
531
532
533// Return the degree of the midpoint between two zodiac positions, making sure

Callers 15

FEvalFunctionFunction · 0.85
PrintAspectFunction · 0.85
ComputeArabicFunction · 0.85
DrawWheelFunction · 0.85
ChartInDaySearchFunction · 0.85
ChartTransitSearchFunction · 0.85
ChartHorizonRisingFunction · 0.85
PlotTelescopeFunction · 0.85
XChartTelescopeFunction · 0.85
XChartLocalFunction · 0.85
XChartMidpointFunction · 0.85
DrawCalendarAspectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected