pub struct AnimatedSpring {
pub matrix: SpringMatrixWires,
pub displacement: Wire,
pub velocity: Wire,
pub destination: Wire,
pub destination_during_steps: Option<Wire>,
}Expand description
One spring of an emit_animated_object.
Fields§
§matrix: SpringMatrixWires§displacement: WireThe displacement from destination_during_steps, usually a state cell the previous evaluation wrote back.
velocity: Wire§destination: WireThe destination from this evaluation’s time on, after its events.
destination_during_steps: Option<Wire>The destination the stored displacement is measured from, in effect during this evaluation’s steps,
usually the destination the previous evaluation wrote back. None when the evaluation can’t change the
destination; the steps then pull toward destination.
Trait Implementations§
Source§impl Clone for AnimatedSpring
impl Clone for AnimatedSpring
impl Copy for AnimatedSpring
Auto Trait Implementations§
impl Freeze for AnimatedSpring
impl RefUnwindSafe for AnimatedSpring
impl Send for AnimatedSpring
impl Sync for AnimatedSpring
impl Unpin for AnimatedSpring
impl UnsafeUnpin for AnimatedSpring
impl UnwindSafe for AnimatedSpring
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