pub struct LinearInterpolator { /* private fields */ }Expand description
Linear interpolation between points.
Implementations§
Source§impl LinearInterpolator
impl LinearInterpolator
Sourcepub fn from_points(points: &[Point2D]) -> LinearInterpolator
pub fn from_points(points: &[Point2D]) -> LinearInterpolator
Create from points (must be sorted by x).
Sourcepub fn from_xy(xs: &[f64], ys: &[f64]) -> LinearInterpolator
pub fn from_xy(xs: &[f64], ys: &[f64]) -> LinearInterpolator
Create from x,y data.
Trait Implementations§
Source§impl Clone for LinearInterpolator
impl Clone for LinearInterpolator
Source§fn clone(&self) -> LinearInterpolator
fn clone(&self) -> LinearInterpolator
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 LinearInterpolator
impl Debug for LinearInterpolator
Auto Trait Implementations§
impl Freeze for LinearInterpolator
impl RefUnwindSafe for LinearInterpolator
impl Send for LinearInterpolator
impl Sync for LinearInterpolator
impl Unpin for LinearInterpolator
impl UnsafeUnpin for LinearInterpolator
impl UnwindSafe for LinearInterpolator
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