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

Function Midpoint

general.cpp:536–542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

534// we return the true midpoint closest to the positions in question.
535
536real Midpoint(real deg1, real deg2)
537{
538 real mid;
539
540 mid = (deg1 + deg2)/2.0;
541 return MinDistance(deg1, mid) < rDegQuad ? mid : Mod(mid + rDegHalf);
542}
543
544
545// Like Midpoint() but return the point proportioned between the two degrees.

Callers 15

FEvalFunctionFunction · 0.85
ChartAspectRelationFunction · 0.85
ChartInDayInfluenceFunction · 0.85
ChartTransitInfluenceFunction · 0.85
DrawWheelFunction · 0.85
ChartInDaySearchFunction · 0.85
ChartTransitSearchFunction · 0.85
ChartHorizonRisingFunction · 0.85
XChartHorizonFunction · 0.85
XChartHorizonSkyFunction · 0.85
XChartSphereFunction · 0.85
HouseSripatiFunction · 0.85

Calls 2

MinDistanceFunction · 0.85
ModFunction · 0.85

Tested by

no test coverage detected