Interface InterpolateFunction<T>

Defines the shape of an interpolation function.

Type Parameters

  • T
  • Parameters

    • start: T

      Start value.

    • end: T

      End value.

    • amount: number

      Current amount between 0 - 1 inclusive.

    Returns T

    Interpolated value between start & end.