Function interpolateNumber

  • Buliding on-top of instantNumber, interpolateNumber interpolates between numbers, but unlike instantNumber interpolateNumber uses an Array of t instances to generate an array of interpolated values


    Array of interpolated numbers at different instances


    Source code of interpolateNumber


    • arr_t: number[]

      Array of numbers (between 0 to 1) which each represent an instant of the interpolation

    • values: number[]

      Array of numbers to interpolate between

    • decimal: number = 3

      How many decimals should the interpolated value have

    Returns number[]

Generated using TypeDoc