summaryrefslogtreecommitdiff
path: root/gipfel-droid/build.sh
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-11-10 09:03:48 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-11-10 09:03:48 +0100
commit02546370ec4458eef59a8f636fe05b57961d56ab (patch)
treeeb5523d92c04e740b6fb025803116ef7c96c59c7 /gipfel-droid/build.sh
parentce3b45ddaab7ddc7017fa75dc5de64cd6ca70f93 (diff)
core: is_visible wraps the azimuth difference and rejects non-finite input
GipfelFind.lean Finding 1: with |alph - a_center| > 2pi (user enters azimuth 400deg, or a fit leaves a_center unnormalized) the single fold produced a NEGATIVE 'distance' that passed every comparison, making hills behind the camera visible. NaN or infinite azimuths — and a NaN center, which made everything visible — passed as well. Fix at the point of use: wrap with % 2pi before the fold, and bail out on non-finite alph/a_center. Regression test pins the Lean witnesses (out_of_range_center_angle_stays_safe).
Diffstat (limited to 'gipfel-droid/build.sh')
0 files changed, 0 insertions, 0 deletions