summaryrefslogtreecommitdiff
path: root/proofs/rust-check/src/bin/f1.rs
blob: 5259939522033c54c6d12743203ab72254618065 (plain)
1
2
3
4
5
6
7
8
9
10
use gipfel_core::panorama::Panorama;
fn main() {
    let mut p = Panorama::new();
    p.set_center_angle(400.0); // "bearing + full turn" input slip
    println!("az=400°: hill at alph=-180° (220° off, behind) visible? {}", p.is_visible(-std::f64::consts::PI));
    println!("az=NaN:  visible? {}", p.is_visible(f64::NAN));
    println!("az=inf:  visible? {}", p.is_visible(f64::INFINITY));
    p.set_center_angle(f64::NAN);
    println!("center=NaN: everything visible? {}", p.is_visible(0.0));
}