Skip to main content

IInterpolator<T>

IInterpolator<T>

Implements an interpolation algorithm for a given value type.

Methods

Interpolate

T Interpolate(T& a, T& b, float t)

Interpolate between two values.

The interpolated value.

  • a:The starting interpolation value.
  • b:The ending interpolation value.
  • t:The normalized (between 0 and 1) time between the two values.