diff options
Diffstat (limited to 'proofs/rust-check/src/bin')
| -rw-r--r-- | proofs/rust-check/src/bin/f1.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/proofs/rust-check/src/bin/f1.rs b/proofs/rust-check/src/bin/f1.rs new file mode 100644 index 0000000..5259939 --- /dev/null +++ b/proofs/rust-check/src/bin/f1.rs @@ -0,0 +1,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)); +} |
