pub struct MechanicalIntegrator { /* private fields */ }Expand description
Specialized integrator for mechanical systems
Implementations§
Source§impl MechanicalIntegrator
impl MechanicalIntegrator
Sourcepub fn new(config: MechanicalConfig, properties: MechanicalProperties) -> Self
pub fn new(config: MechanicalConfig, properties: MechanicalProperties) -> Self
Create a new mechanical integrator
Sourcepub fn step(
&mut self,
t: f64,
state: &RigidBodyState,
) -> IntegrateResult<MechanicalIntegrationResult>
pub fn step( &mut self, t: f64, state: &RigidBodyState, ) -> IntegrateResult<MechanicalIntegrationResult>
Perform a single integration step
Sourcepub fn energy_statistics(&self) -> (f64, f64, f64)
pub fn energy_statistics(&self) -> (f64, f64, f64)
Get energy conservation statistics
Auto Trait Implementations§
impl Freeze for MechanicalIntegrator
impl !RefUnwindSafe for MechanicalIntegrator
impl Send for MechanicalIntegrator
impl Sync for MechanicalIntegrator
impl Unpin for MechanicalIntegrator
impl !UnwindSafe for MechanicalIntegrator
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more