pub struct LinearFn {
pub slope: f64,
pub intercept: f64,
}Expand description
A linear raw → physical function f(x) = slope·x + intercept.
Fields§
§slope: f64Multiplicative term a.
intercept: f64Additive term b.
Implementations§
Trait Implementations§
impl Copy for LinearFn
impl StructuralPartialEq for LinearFn
Auto Trait Implementations§
impl Freeze for LinearFn
impl RefUnwindSafe for LinearFn
impl Send for LinearFn
impl Sync for LinearFn
impl Unpin for LinearFn
impl UnsafeUnpin for LinearFn
impl UnwindSafe for LinearFn
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