pub struct ReplacementTransform { /* private fields */ }Expand description
Morphs one mobject into another already in the scene, then swaps them, manim’s
ReplacementTransform: target is hidden until the end, when it takes over and id is
removed. See replacement_transform.
Trait Implementations§
Source§impl Animation for ReplacementTransform
impl Animation for ReplacementTransform
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 ReplacementTransform
impl RefUnwindSafe for ReplacementTransform
impl Send for ReplacementTransform
impl Sync for ReplacementTransform
impl Unpin for ReplacementTransform
impl UnsafeUnpin for ReplacementTransform
impl UnwindSafe for ReplacementTransform
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