pub struct Position2d(/* private fields */);
Implementations§
Trait Implementations§
Source§impl Interpolate for Position2d
impl Interpolate for Position2d
Source§fn interpolate(&self, other: &Self, t: f64) -> Self
fn interpolate(&self, other: &Self, t: f64) -> Self
Linearly interpolates between
self
and other
.
For t = 0.0 this should return self
. For t = 1.0 this
should return other
.fn interpolate_multi(&self, other: &Self, t: &Self) -> Self
Auto Trait Implementations§
impl Freeze for Position2d
impl RefUnwindSafe for Position2d
impl Send for Position2d
impl Sync for Position2d
impl Unpin for Position2d
impl UnwindSafe for Position2d
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