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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright (C) 2026 Vallés Puig, Ramon
//! Typed interpolation grids for optics workloads.
//!
//! The grids in this module expose typed query and value units while keeping the
//! interpolation kernels on contiguous `f64` storage for fast hot-loop use.
//!
//! ## References
//!
//! - Standard linear, bilinear, and trilinear interpolation formulas.
pub use Axis;
pub use GridError;
pub use Grid1D;
pub use ;
pub use Grid3D;
/// Axis monotonicity direction for direction-aware interpolation kernels.
///
/// Used by [`algo`] functions and [`Grid2D`]/[`Grid3D`] constructors that accept
/// both ascending and descending axis data.
///
/// # Examples
///
/// ```rust
/// use optica::grid::AxisDirection;
///
/// let dir = AxisDirection::Ascending;
/// assert_ne!(dir, AxisDirection::Descending);
/// ```
/// Policy for interpolation values requested outside the grid's range.
///
/// # Examples
///
/// ```rust
/// use optica::grid::OutOfRange;
///
/// assert_eq!(OutOfRange::default(), OutOfRange::ClampToEndpoints);
/// ```