Files
sfhorizont/core/src/lib.rs
T

22 lines
712 B
Rust
Raw Normal View History

2026-10-24 13:20:55 +02:00
//! sfzenith core: pure, deterministic horizon-survey logic.
//!
//! No I/O, no clocks, no randomness, no web-sys. The same code is compiled to
//! wasm (via the `wasm/` adapter crate) and tested natively with `cargo test`.
//!
//! Conventions (see docs/FORMATS.md):
//! * Azimuth: degrees, 0 = true north, clockwise (90 = east).
//! * Altitude: degrees above the mathematical horizon.
//! * Profiles are stored in the *measured* frame; exporters apply the user's
//! north offset, so the offset can change without re-running detection.
pub mod fov;
pub mod hrz;
pub mod profile;
pub mod projection;
pub mod session;
pub mod skymask;
pub mod stellarium;
pub mod zip;
pub use profile::HorizonProfile;