compute_spin_drift

Function compute_spin_drift 

Source
pub fn compute_spin_drift(
    time_s: f64,
    stability: f64,
    twist_rate: f64,
    is_twist_right: bool,
) -> f64
Expand description

Calculate spin drift in meters using Litz approximation.

§Arguments

  • time_s - Time of flight in seconds
  • stability - Stability coefficient
  • twist_rate - Twist rate in inches (calibers per turn)
  • is_twist_right - True for right-hand twist, false for left-hand

§Returns

  • Spin drift in meters