Expand description
This struct will be used to store the position and velocity of the state values for the RK4 approach
Fields
x: f32
Position
dx: f32
Velocity
Implementations
sourceimpl State
impl State
sourcepub fn evaluate(
&mut self,
initial: State,
d: Derivative,
t: f32,
dt: f32
) -> Derivative
pub fn evaluate(
&mut self,
initial: State,
d: Derivative,
t: f32,
dt: f32
) -> Derivative
Evaluates and updates the state and derivatives of an object and returns the derivative
Auto Trait Implementations
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more