AutoMovie API
    Preparing search index...

    Variable lerpConst

    lerp: (from: number, to: number, progress: number) => number = ...

    Linear interpolation of one scalar, from · (1 − progress) + to · progress.

    This weighted form returns from exactly at progress = 0 and to exactly at progress = 1, so a formation cue lands on its authored end value without rounding drift. progress is not clamped; values outside [0, 1] extrapolate along the same line. The formation samplers and slot positions use it for every interpolated coordinate and heading.

    Type Declaration

      • (from: number, to: number, progress: number): number
      • Parameters

        • from: number

          Value at progress = 0.

        • to: number

          Value at progress = 1.

        • progress: number

          Interpolation fraction, normally in [0, 1].

        Returns number