pub struct SpanInterpolatorPerspExact { /* private fields */ }Expand description
Exact perspective span interpolator.
Port of C++ span_interpolator_persp_exact<SubpixelShift>.
Uses PerspectiveIteratorX for exact perspective division at each pixel.
Scale factors are linearly interpolated via DDA.
Implementations§
Source§impl SpanInterpolatorPerspExact
impl SpanInterpolatorPerspExact
pub fn new() -> Self
pub fn new_quad_to_quad(src: &[f64; 8], dst: &[f64; 8]) -> Self
pub fn new_rect_to_quad( x1: f64, y1: f64, x2: f64, y2: f64, quad: &[f64; 8], ) -> Self
pub fn new_quad_to_rect( quad: &[f64; 8], x1: f64, y1: f64, x2: f64, y2: f64, ) -> Self
pub fn quad_to_quad(&mut self, src: &[f64; 8], dst: &[f64; 8])
pub fn rect_to_quad( &mut self, x1: f64, y1: f64, x2: f64, y2: f64, quad: &[f64; 8], )
pub fn quad_to_rect( &mut self, quad: &[f64; 8], x1: f64, y1: f64, x2: f64, y2: f64, )
pub fn is_valid(&self) -> bool
pub fn local_scale(&self, x: &mut i32, y: &mut i32)
pub fn transform(&self, x: &mut f64, y: &mut f64)
pub fn trans_dir(&self) -> &TransPerspective
pub fn trans_inv(&self) -> &TransPerspective
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpanInterpolatorPerspExact
impl RefUnwindSafe for SpanInterpolatorPerspExact
impl Send for SpanInterpolatorPerspExact
impl Sync for SpanInterpolatorPerspExact
impl Unpin for SpanInterpolatorPerspExact
impl UnwindSafe for SpanInterpolatorPerspExact
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