pub type FloatLut2 = Lut2<f64, f64, f64>;
Expand description
A floating point 2D LUT.
Aliased Type§
struct FloatLut2 { /* private fields */ }
Implementations§
source§impl FloatLut2
impl FloatLut2
sourcepub fn getf(&self, k1: f64, k2: f64) -> Option<f64>
pub fn getf(&self, k1: f64, k2: f64) -> Option<f64>
Lookup a value for the given keys, interpolating as necessary.
sourcepub fn getf_extrapolate(
&self,
k1: f64,
k2: f64,
extrapolate: Extrapolation
) -> Option<f64>
pub fn getf_extrapolate( &self, k1: f64, k2: f64, extrapolate: Extrapolation ) -> Option<f64>
Lookup a value for the given keys, interpolating as necessary.
Can extrapolate beyond the bounds of the key ranges.