Struct crystalorb::world::Tweened [−][src]
pub struct Tweened<T> { /* fields omitted */ }
Expand description
This is the result when you interpolate/“blend”/“tween” between two DisplayState
s of
adjacent timestamps (similar to “Inbetweening” in
animation - the generation of intermediate frames). You get the DisplayState
and a
floating-point, non-whole-number timestamp.
Implementations
Get the resulting in-between DisplayState
.
Get the “logical timestamp” that Tweened::display_state
corresponds with. For
example, a float_timestamp
of 123.4
represents the in-between frame that is 40% of
the way between frame 123
and frame 124
.
Interpolate between two timestamped dispay states to find the in-between display state.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl<T> RefUnwindSafe for Tweened<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Tweened<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more