pub enum SpringType {
Critical,
Overdamped,
Underdamped,
}Expand description
Which closed-form solution a SpringSimulation resolved to, decided by
damping² − 4·mass·stiffness.
Variants§
Critical
damping² == 4·mass·stiffness — returns in the shortest time that
still never crosses the end position.
Overdamped
damping² > 4·mass·stiffness — slower than critical, no oscillation.
Underdamped
damping² < 4·mass·stiffness — oscillates about the end position while
decaying.
Trait Implementations§
Source§impl Clone for SpringType
impl Clone for SpringType
impl Copy for SpringType
Source§impl Debug for SpringType
impl Debug for SpringType
impl Eq for SpringType
Source§impl PartialEq for SpringType
impl PartialEq for SpringType
impl StructuralPartialEq for SpringType
Auto Trait Implementations§
impl Freeze for SpringType
impl RefUnwindSafe for SpringType
impl Send for SpringType
impl Sync for SpringType
impl Unpin for SpringType
impl UnsafeUnpin for SpringType
impl UnwindSafe for SpringType
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.