Skip to main content

average_force_from_impulse

Function average_force_from_impulse 

Source
pub fn average_force_from_impulse(impulse: f64, time: f64) -> Option<f64>
Expand description

Computes average force from impulse and elapsed time using F = J / Δt.

Returns None when time is less than or equal to zero, when either input is not finite, or when the computed force is not finite.