[][src]Struct bicubic::Bicubic

pub struct Bicubic { /* fields omitted */ }

contains all necessary information to sample arbitrary points

Example

let x = vec![0.0, 6.0];
let y = vec![0.0, 5.0];
let (f, fx, fy, fxy) = (vec![0.0; 4], vec![0.0; 4], vec![0.0; 4], vec![0.0; 4]);
let bci = bicubic::from_vec(&x, &y, &f, &fx, &fy, &fxy);
let z = bci.sample(5.6, 3.5);

Panics

panic! when one of the f vectors has bad dimensions

Implementations

impl Bicubic[src]

pub fn sample(&self, x: f64, y: f64) -> f64[src]

samples at a given x, y

outside of grid will be 0 (create an issue if you require extrapolation)

Auto Trait Implementations

impl RefUnwindSafe for Bicubic

impl Send for Bicubic

impl Sync for Bicubic

impl Unpin for Bicubic

impl UnwindSafe for Bicubic

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.