get_wind_at_position

Function get_wind_at_position 

Source
pub fn get_wind_at_position(
    position: &Vector3<f64>,
    wind_segments: &[(f64, f64, f64)],
    enable_wind_shear: bool,
    wind_shear_model: &str,
    shooter_altitude_m: f64,
) -> Vector3<f64>
Expand description

High-level API function to get wind at arbitrary position

This is a convenience wrapper that handles wind segments, shear models, and altitude calculations in a single function call.

§Arguments

  • position - 3D position vector [x_downrange, y_vertical, z_lateral]
  • wind_segments - Wind segments as (speed_kmh, angle_deg, until_distance_m)
  • enable_wind_shear - Whether to apply wind shear modeling
  • wind_shear_model - Model type: “none”, “logarithmic”, “power_law”, “ekman_spiral”
  • shooter_altitude_m - Shooter’s altitude above sea level

§Returns

Wind vector in m/s [x_downrange, y_vertical, z_lateral]