pub struct DistanceInterpolator4 { /* private fields */ }Expand description
Distance interpolator for image-patterned lines.
Port of C++ distance_interpolator4.
Tracks perpendicular distance, start/end join distances, and pattern offset distance.
Implementations§
Source§impl DistanceInterpolator4
impl DistanceInterpolator4
pub fn new( x1: i32, y1: i32, x2: i32, y2: i32, sx: i32, sy: i32, ex: i32, ey: i32, len: i32, scale: f64, x: i32, y: i32, ) -> Self
pub fn inc_x(&mut self, dy: i32)
pub fn dec_x(&mut self, dy: i32)
pub fn inc_y(&mut self, dx: i32)
pub fn dec_y(&mut self, dx: i32)
pub fn dist(&self) -> i32
pub fn dist_start(&self) -> i32
pub fn dist_pict(&self) -> i32
pub fn dist_end(&self) -> i32
pub fn dx_start(&self) -> i32
pub fn dy_start(&self) -> i32
pub fn dx_pict(&self) -> i32
pub fn dy_pict(&self) -> i32
pub fn dx_end(&self) -> i32
pub fn dy_end(&self) -> i32
pub fn len(&self) -> i32
Auto Trait Implementations§
impl Freeze for DistanceInterpolator4
impl RefUnwindSafe for DistanceInterpolator4
impl Send for DistanceInterpolator4
impl Sync for DistanceInterpolator4
impl Unpin for DistanceInterpolator4
impl UnwindSafe for DistanceInterpolator4
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