Function initial_conditions::kinematics::linear_motion::first_velocity [] [src]

pub fn first_velocity<T>(acc: Vec<T>, v_i: Vec<T>, time: T) -> Vec<T> where
    T: Float

First Equation of Motion:

Returns the final velocity (v) assuming a constant acceleration (a) during a time (t).

Args

  • v_i: Vec<f64> - Initial velocity (m * s)
  • a: mut Vec<f64> - constant acceleration (m * s^(2))
  • t: f64 - time (s)

Notes:

  • This derivation can be understood here
  • This only holds under constant acceleration