Function interpolateSequence

  • Given an Array of values, find a value using t (which goes from 0 to 1), by using t to estimate the index of said value in the array of values

    This is meant for interplolating strings that aren't number-like

    Source

    Source code of interpolateSequence

    Type Parameters

    • T

    Parameters

    • t: number

      A number between 0 to 1

    • values: T[]

      Array of numbers to interpolate between

    Returns T

    Interpolated numbers at different instances

Generated using TypeDoc