optica 0.2.0

Fast participating-media and optics foundation: typed rays, optical coefficients, phase functions, spectra, and optical-depth integration.
Documentation
1
2
3
4
5
6
7
8
9
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright (C) 2026 Vallés Puig, Ramon

//! Re-exports of untyped trapezoidal integration kernels.
//!
//! For typed integration over a [`super::SampledSpectrum`], use the methods
//! on that type directly.

pub use super::algo::{trapz, trapz_range, trapz_weighted};