pub struct RelativeScalarInterpolator;Expand description
Interpolates RelativeScalar values of the same unit; scalars of
different units switch halfway.
Implementations§
Source§impl RelativeScalarInterpolator
impl RelativeScalarInterpolator
Sourcepub fn instance() -> &'static RelativeScalarInterpolator
pub fn instance() -> &'static RelativeScalarInterpolator
The shared instance.
Trait Implementations§
Source§impl Clone for RelativeScalarInterpolator
impl Clone for RelativeScalarInterpolator
impl Copy for RelativeScalarInterpolator
Source§impl Debug for RelativeScalarInterpolator
impl Debug for RelativeScalarInterpolator
Source§impl Default for RelativeScalarInterpolator
impl Default for RelativeScalarInterpolator
Source§impl IInterpolator<RelativeScalar> for RelativeScalarInterpolator
impl IInterpolator<RelativeScalar> for RelativeScalarInterpolator
fn interpolate( &self, from: RelativeScalar, to: RelativeScalar, progress: f32, ) -> RelativeScalar
Auto Trait Implementations§
impl Freeze for RelativeScalarInterpolator
impl RefUnwindSafe for RelativeScalarInterpolator
impl Send for RelativeScalarInterpolator
impl Sync for RelativeScalarInterpolator
impl Unpin for RelativeScalarInterpolator
impl UnsafeUnpin for RelativeScalarInterpolator
impl UnwindSafe for RelativeScalarInterpolator
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