1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright (C) 2026 Vallés Puig, Ramon
//! # optica — participating-media and optics foundations
//!
//! `optica` provides fast, typed building blocks for optics and radiative-transfer
//! workloads: rays, optical coefficients, scattering phase functions, sampled
//! spectra, interpolation tables, and optical-depth integration kernels.
//!
//! The crate is intentionally domain-agnostic. It does **not** include astronomy,
//! planetary constants, ephemerides, or site-specific policies.
//!
//! ## Feature flags
//!
//! - `std` *(default)*: enables `std`-dependent helpers (ASCII loader, etc.).
//! - `alloc`: enables heap-backed containers in `no_std` builds. All public types
//! that use `Vec`/`Box`/`String` are gated behind `alloc` or `std`.
//! - `serde`: derives `Serialize`/`Deserialize` for the public data, error,
//! and policy enums.
//!
//! ## References
//!
//! - Chandrasekhar, *Radiative Transfer*.
//! - Bodhaine et al. (1999), Rayleigh optical-depth approximation.
extern crate alloc;
pub use ;