Function interpolateRound

  • Returns an interpolator between the two numbers a and b; the interpolator is similar to interpolateNumber, except it will round the resulting value to the nearest integer.

    Parameters

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

    Returns ((t) => number)

      • (t): number
      • Parameters

        • t: number

        Returns number