substrate::lut

Type Alias FloatLut2

Source
pub type FloatLut2 = Lut2<f64, f64, f64>;
Expand description

A floating point 2D LUT.

Aliased Type§

struct FloatLut2 { /* private fields */ }

Implementations§

Source§

impl FloatLut2

Source

pub fn getf(&self, k1: f64, k2: f64) -> Option<f64>

Lookup a value for the given keys, interpolating as necessary.

Source

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.