Interface InterpolatorFactory<T, U>

An Interpolator factory returns an interpolator function.

The first generic corresponds to the data type of the interpolation boundaries. The second generic corresponds to the data type of the return type of the interpolator.

interface InterpolatorFactory ((a, b) => ((t) => U))

Type Parameters

  • T

  • U

  • Construct a new interpolator function, based on the provided interpolation boundaries.

    Parameters

    • a: T

      Start boundary of the interpolation interval.

    • b: T

      End boundary of the interpolation interval.

    Returns ((t) => U)

      • (t): U
      • Construct a new interpolator function, based on the provided interpolation boundaries.

        Parameters

        • t: number

        Returns U