pub struct LinearTransferFunction {
pub slope: f32,
pub intercept: f32,
}Expand description
Linear function: output = slope × input + intercept.
Simple linear transformation of the input value.
Fields§
§slope: f32§intercept: f32Trait Implementations§
Source§impl Clone for LinearTransferFunction
impl Clone for LinearTransferFunction
Source§fn clone(&self) -> LinearTransferFunction
fn clone(&self) -> LinearTransferFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LinearTransferFunction
impl Debug for LinearTransferFunction
Source§impl PartialEq for LinearTransferFunction
impl PartialEq for LinearTransferFunction
impl StructuralPartialEq for LinearTransferFunction
Auto Trait Implementations§
impl Freeze for LinearTransferFunction
impl RefUnwindSafe for LinearTransferFunction
impl Send for LinearTransferFunction
impl Sync for LinearTransferFunction
impl Unpin for LinearTransferFunction
impl UnsafeUnpin for LinearTransferFunction
impl UnwindSafe for LinearTransferFunction
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