AutoMovie API
    Preparing search index...

    Interface IAutoMovieProjectileFlight

    A drag flight's reader.

    interface IAutoMovieProjectileFlight {
        fastest: number;
        step: number;
        at(seconds: number): IAutoMovieProjectileState;
        interval(seconds: number): IAutoMovieProjectileDragInterval;
    }
    Index
    fastest: number

    Whole-flight speed bound, m/s: the larger of launch and terminal speed with positive drag; Infinity for zero drag with nonzero gravity, and launch speed without either. A contact search uses a finite-interval bound when this is infinite.

    step: number

    The integration step, seconds.

    • The state at a second after the launch.

      Nonfinite launch-relative seconds throw RangeError; finite negatives return launch state. The reader retains integrated chunks for later reads and returns fresh world-metre position and m/s velocity. Keep the source projectile unchanged; releasing it and this reader permits their cached data to be collected.

      Parameters

      • seconds: number

        Seconds since the launch; before it, the launch state.

      Returns IAutoMovieProjectileState

      Position and velocity.

    • Read the actual cubic interval containing a nonnegative flight time.

      Nonfinite seconds throw RangeError; finite negative values select the first interval. Sampling grows the reader's retained integration chunks through the requested time and returns fresh endpoint states. Keep the source projectile unchanged while this identity-cached reader is used.

      Parameters

      • seconds: number

        Seconds since launch; negative times select the first interval.

      Returns IAutoMovieProjectileDragInterval

      Actual adjacent knot times with fresh endpoint states.