pub struct SpringSpec {
pub damping_ratio: f32,
pub stiffness: f32,
}Expand description
Physical spring parameters. Duration is emergent (determined by physics), not specified.
Fields§
§damping_ratio: f32Damping ratio ζ: 0 = undamped, <1 = underdamped (overshoot), 1 = critically damped,
1 = overdamped.
stiffness: f32Stiffness k: higher = faster, snappier response.
Implementations§
Trait Implementations§
Source§impl Clone for SpringSpec
impl Clone for SpringSpec
Source§fn clone(&self) -> SpringSpec
fn clone(&self) -> SpringSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SpringSpec
Auto Trait Implementations§
impl Freeze for SpringSpec
impl RefUnwindSafe for SpringSpec
impl Send for SpringSpec
impl Sync for SpringSpec
impl Unpin for SpringSpec
impl UnsafeUnpin for SpringSpec
impl UnwindSafe for SpringSpec
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