pub struct RelativePointInterpolator;Expand description
Interpolates RelativePoint values of the same unit; points of
different units switch halfway.
Implementations§
Source§impl RelativePointInterpolator
impl RelativePointInterpolator
Sourcepub fn instance() -> &'static RelativePointInterpolator
pub fn instance() -> &'static RelativePointInterpolator
The shared instance.
Trait Implementations§
Source§impl Clone for RelativePointInterpolator
impl Clone for RelativePointInterpolator
impl Copy for RelativePointInterpolator
Source§impl Debug for RelativePointInterpolator
impl Debug for RelativePointInterpolator
Source§impl Default for RelativePointInterpolator
impl Default for RelativePointInterpolator
Source§impl IInterpolator<RelativePoint> for RelativePointInterpolator
impl IInterpolator<RelativePoint> for RelativePointInterpolator
fn interpolate( &self, from: RelativePoint, to: RelativePoint, progress: f32, ) -> RelativePoint
Auto Trait Implementations§
impl Freeze for RelativePointInterpolator
impl RefUnwindSafe for RelativePointInterpolator
impl Send for RelativePointInterpolator
impl Sync for RelativePointInterpolator
impl Unpin for RelativePointInterpolator
impl UnsafeUnpin for RelativePointInterpolator
impl UnwindSafe for RelativePointInterpolator
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more