pub struct Linear;
Expand description
Linear interpolation: https://en.wikipedia.org/wiki/Linear_interpolation
Trait Implementations§
Source§impl From<Linear> for Strategy1DEnum
impl From<Linear> for Strategy1DEnum
Source§impl From<Linear> for Strategy2DEnum
impl From<Linear> for Strategy2DEnum
Source§impl From<Linear> for Strategy3DEnum
impl From<Linear> for Strategy3DEnum
Source§impl From<Linear> for StrategyNDEnum
impl From<Linear> for StrategyNDEnum
Source§impl<D> Strategy1D<D> for Linear
impl<D> Strategy1D<D> for Linear
Source§fn allow_extrapolate(&self) -> bool
fn allow_extrapolate(&self) -> bool
Returns true
.
Source§fn interpolate(
&self,
data: &InterpData1D<D>,
point: &[D::Elem; 1],
) -> Result<D::Elem, InterpolateError>
fn interpolate( &self, data: &InterpData1D<D>, point: &[D::Elem; 1], ) -> Result<D::Elem, InterpolateError>
Execute interpolation (after handling
Extrapolate
setting).Source§fn init(&mut self, _data: &InterpData1D<D>) -> Result<(), ValidateError>
fn init(&mut self, _data: &InterpData1D<D>) -> Result<(), ValidateError>
Initialize strategy struct, with access to interpolation data.
Source§impl<D> Strategy2D<D> for Linear
impl<D> Strategy2D<D> for Linear
Source§fn allow_extrapolate(&self) -> bool
fn allow_extrapolate(&self) -> bool
Returns true
.
Source§fn interpolate(
&self,
data: &InterpData2D<D>,
point: &[D::Elem; 2],
) -> Result<D::Elem, InterpolateError>
fn interpolate( &self, data: &InterpData2D<D>, point: &[D::Elem; 2], ) -> Result<D::Elem, InterpolateError>
Execute interpolation (after handling
Extrapolate
setting).Source§fn init(&mut self, _data: &InterpData2D<D>) -> Result<(), ValidateError>
fn init(&mut self, _data: &InterpData2D<D>) -> Result<(), ValidateError>
Initialize strategy struct, with access to interpolation data.
Source§impl<D> Strategy3D<D> for Linear
impl<D> Strategy3D<D> for Linear
Source§fn allow_extrapolate(&self) -> bool
fn allow_extrapolate(&self) -> bool
Returns true
.
Source§fn interpolate(
&self,
data: &InterpData3D<D>,
point: &[D::Elem; 3],
) -> Result<D::Elem, InterpolateError>
fn interpolate( &self, data: &InterpData3D<D>, point: &[D::Elem; 3], ) -> Result<D::Elem, InterpolateError>
Execute interpolation (after handling
Extrapolate
setting).Source§fn init(&mut self, _data: &InterpData3D<D>) -> Result<(), ValidateError>
fn init(&mut self, _data: &InterpData3D<D>) -> Result<(), ValidateError>
Initialize strategy struct, with access to interpolation data.
Source§impl<D> StrategyND<D> for Linear
impl<D> StrategyND<D> for Linear
Source§fn allow_extrapolate(&self) -> bool
fn allow_extrapolate(&self) -> bool
Returns true
.
Source§fn interpolate(
&self,
data: &InterpDataND<D>,
point: &[D::Elem],
) -> Result<D::Elem, InterpolateError>
fn interpolate( &self, data: &InterpDataND<D>, point: &[D::Elem], ) -> Result<D::Elem, InterpolateError>
Execute interpolation (after handling
Extrapolate
setting).Source§fn init(&mut self, _data: &InterpDataND<D>) -> Result<(), ValidateError>
fn init(&mut self, _data: &InterpDataND<D>) -> Result<(), ValidateError>
Initialize strategy struct, with access to interpolation data.
impl StructuralPartialEq for Linear
Auto Trait Implementations§
impl Freeze for Linear
impl RefUnwindSafe for Linear
impl Send for Linear
impl Sync for Linear
impl Unpin for Linear
impl UnwindSafe for Linear
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more