Skip to main content

SpanInterpolator

Trait SpanInterpolator 

Source
pub trait SpanInterpolator {
    // Required methods
    fn begin(&mut self, x: f64, y: f64, len: u32);
    fn next(&mut self);
    fn coordinates(&self, x: &mut i32, y: &mut i32);
}
Expand description

Trait for span interpolators used by image filter span generators.

All span interpolators must provide begin, next, and coordinates methods. This mirrors the C++ template interface used by span generators.

Required Methods§

Source

fn begin(&mut self, x: f64, y: f64, len: u32)

Source

fn next(&mut self)

Source

fn coordinates(&self, x: &mut i32, y: &mut i32)

Implementors§