Struct cala::State

source ·
pub struct State {
    pub x: f32,
    pub dx: f32,
}
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

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.