[Kstars-devel] Predicting conjunctions
James Bowlin
bowlin at mindspring.com
Thu Mar 13 18:58:45 CET 2008
On Thu March 13 2008, Jan Kotek wrote:
> Increase X by STEP. Calculate increment of distance from last X. If
> increment changed sign(+-) from last time, it means you passed
> minimum/maximum. So reverse STEP (STEP = -0.5* STEP) and continue.
>
> Repeat until STEP is smaller then exactness you want.
There is a C implementation in SkyMap::ClipLine() starting on line 61
of skymapdraw.cpp. It finds where lines cross the celestial horizon.
--
Peace, James
More information about the Kstars-devel
mailing list