Struct DrivenSpring
pub struct DrivenSpring {
pub target: f64,
pub stiffness: f64,
pub damping: f64,
pub max_displacement: f64,
pub max_speed: f64,
}Expand description
Stiffness and damping per unit mass: stiffness * (target - position) - damping * velocity.
Fields§
§target: f64§stiffness: f64§damping: f64§max_displacement: f64§max_speed: f64Trait Implementations§
§impl Clone for DrivenSpring
impl Clone for DrivenSpring
§fn clone(&self) -> DrivenSpring
fn clone(&self) -> DrivenSpring
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 DrivenSpring
§impl Debug for DrivenSpring
impl Debug for DrivenSpring
§impl ODEFunction4D for DrivenSpring
impl ODEFunction4D for DrivenSpring
§impl PartialEq for DrivenSpring
impl PartialEq for DrivenSpring
impl StructuralPartialEq for DrivenSpring
Auto Trait Implementations§
impl Freeze for DrivenSpring
impl RefUnwindSafe for DrivenSpring
impl Send for DrivenSpring
impl Sync for DrivenSpring
impl Unpin for DrivenSpring
impl UnsafeUnpin for DrivenSpring
impl UnwindSafe for DrivenSpring
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