Type Alias substrate::lut::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.