[][src]Struct plop::State

pub struct State {
    pub x: f32,
    pub dx: f32,
}

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

Methods

impl State[src]

pub fn evaluate(
    &mut self,
    initial: State,
    d: Derivative,
    t: f32,
    dt: f32
) -> Derivative
[src]

Evaluates and updates the state and derivatives of an object and returns the derivative

Auto Trait Implementations

impl Send for State

impl Sync for State

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]