Optics primitives for spectra, wavelengths, and visible-light boundaries.
use-optics is the natural optics sibling to use-color and use-wave. It starts with compact
helpers for classifying wavelengths, working with visible-light ranges, and turning spectral data
points into small Rust values.
The scope is intentionally narrow for v0.1: auditable wavelength primitives first, richer optical models later.
| Crate | Purpose |
|---|---|
use-optics |
Wavelength classification and small spectral data |
[dependencies]
use-optics = "0.1.0"use use_optics::{classify_wavelength_nm, SpectralBand};
assert_eq!(classify_wavelength_nm(532.0), Some(SpectralBand::Visible));- Visible-range helpers and spectral classification.
- Small wavelength-centric value types.
- No ray-tracing, lens design, or color appearance modeling yet.