pub struct TransformDiff { /* private fields */ }Expand description
Animates a Group into a new arrangement planned by diffing part keys; made by
Group::transform_diff.
Implementations§
Trait Implementations§
Source§impl Animation for TransformDiff
impl Animation for TransformDiff
Source§fn plan(&mut self, state: &SceneState)
fn plan(&mut self, state: &SceneState)
Called once when played, with the scene state at the start of the clip. Do the expensive
work (alignment, diffing) here.
Source§fn sample(&self, alpha: f32, state: &mut SceneState)
fn sample(&self, alpha: f32, state: &mut SceneState)
Writes the targets’ state at eased progress
alpha into state, which holds the scene
as it was at the start of the clip. Must be cheap and pure.Auto Trait Implementations§
impl Freeze for TransformDiff
impl RefUnwindSafe for TransformDiff
impl Send for TransformDiff
impl Sync for TransformDiff
impl Unpin for TransformDiff
impl UnsafeUnpin for TransformDiff
impl UnwindSafe for TransformDiff
Blanket Implementations§
Source§impl<A> AnimationExt for Awhere
A: Animation,
impl<A> AnimationExt for Awhere
A: Animation,
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