pub struct PendulumForceField {
pub g: f64,
pub length: f64,
pub damping: f64,
}Expand description
Force field for simple pendulum.
Models gravity plus the constraint force (tension) that keeps the particle on the circular arc.
Fields§
§g: f64Gravitational acceleration.
length: f64Pendulum length.
damping: f64Damping coefficient.
Trait Implementations§
Source§impl Clone for PendulumForceField
impl Clone for PendulumForceField
Source§fn clone(&self) -> PendulumForceField
fn clone(&self) -> PendulumForceField
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PendulumForceField
impl Debug for PendulumForceField
Auto Trait Implementations§
impl Freeze for PendulumForceField
impl RefUnwindSafe for PendulumForceField
impl Send for PendulumForceField
impl Sync for PendulumForceField
impl Unpin for PendulumForceField
impl UnsafeUnpin for PendulumForceField
impl UnwindSafe for PendulumForceField
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