[−][src]Struct bicubic::Bicubic
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,