pub struct SpringNaturalMotionParameters<T> {
pub final_value: Option<T>,
pub initial_value: Option<T>,
pub initial_velocity: T,
pub damping_ratio: f32,
pub period: Duration,
pub delay_behavior: AnimationDelayBehavior,
pub delay_time: Duration,
pub stop_behavior: AnimationStopBehavior,
}Expand description
What a spring natural motion animation is made of when it starts (the
members of SpringScalarNaturalMotionAnimation and its vector siblings),
in the form that crosses to the server.
Fields§
§final_value: Option<T>The value the spring comes to rest at: FinalValue, or the new value
of an implicit start; the current value of the property when None.
initial_value: Option<T>The value the spring starts from; the current value of the property
when None.
initial_velocity: TThe velocity the spring starts with, per second.
damping_ratio: f32The damping ratio: 1 is critically damped, less oscillates, more returns slower; 0 never comes to rest.
period: DurationThe period of the undamped oscillation.
delay_behavior: AnimationDelayBehavior§delay_time: Duration§stop_behavior: AnimationStopBehaviorTrait Implementations§
Source§impl<T: Clone> Clone for SpringNaturalMotionParameters<T>
impl<T: Clone> Clone for SpringNaturalMotionParameters<T>
impl<T: Copy> Copy for SpringNaturalMotionParameters<T>
Auto Trait Implementations§
impl<T> Freeze for SpringNaturalMotionParameters<T>
impl<T> RefUnwindSafe for SpringNaturalMotionParameters<T>
impl<T> Send for SpringNaturalMotionParameters<T>
impl<T> Sync for SpringNaturalMotionParameters<T>
impl<T> Unpin for SpringNaturalMotionParameters<T>
impl<T> UnsafeUnpin for SpringNaturalMotionParameters<T>
impl<T> UnwindSafe for SpringNaturalMotionParameters<T>
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