pub struct DistanceInterpolator1 { /* private fields */ }Expand description
Distance interpolator 1 — basic perpendicular distance tracker.
Port of C++ distance_interpolator1.
Implementations§
Source§impl DistanceInterpolator1
impl DistanceInterpolator1
pub fn new(x1: i32, y1: i32, x2: i32, y2: i32, 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 dx(&self) -> i32
pub fn dy(&self) -> i32
Auto Trait Implementations§
impl Freeze for DistanceInterpolator1
impl RefUnwindSafe for DistanceInterpolator1
impl Send for DistanceInterpolator1
impl Sync for DistanceInterpolator1
impl Unpin for DistanceInterpolator1
impl UnwindSafe for DistanceInterpolator1
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