Function interpolateNumber

  • Returns an interpolator between the two numbers a and b. The returned interpolator is equivalent to: (t) => a * (1 - t) + b * t.

    Parameters

    • a: number | {
          valueOf(): number;
      }
    • b: number | {
          valueOf(): number;
      }

    Returns ((t) => number)

      • (t): number
      • Parameters

        • t: number

        Returns number