@squawk
    Preparing search index...

    Function glideDistanceWithWind

    • Computes the glide distance adjusted for a headwind or tailwind component.

      Wind affects glide distance by changing the aircraft's groundspeed while the vertical descent rate remains the same. A headwind reduces glide distance; a tailwind extends it.

      The wind correction scales the no-wind glide distance by the ratio of groundspeed to true airspeed during the glide. The consumer provides the best-glide TAS and the headwind/tailwind component (positive = headwind, negative = tailwind).

      Parameters

      • altitudeAglFt: number

        Altitude above ground level in feet.

      • glideRatio: number

        Glide ratio (dimensionless, e.g. 10:1 = 10).

      • bestGlideTasKt: number

        True airspeed at best glide speed in knots.

      • headwindKt: number

        Headwind component in knots (positive = headwind, negative = tailwind).

      Returns number

      Adjusted glide distance in nautical miles.