Crate interpolation

source ·
Expand description

Interpolation algorithms.

Interpolation is used in animation, to describe smooth shapes and to make transitions. Any object that fullfill certain mathematical properties can be interpolated. A common technique is using one or more ‘numbers’ controlling the mixture of states. The choice of interpolation algorithm depends often on the circumstances where it used.



  • Describes a type that can linearly interpolate between two points.


  • Performs cubic beziér interpolation. This is done by interpolation between two quadratic beziér. For more information, see:
  • Performs linear interpolation. A linear interpolation consists of two states ‘a’ and ‘b’. The ‘t’ variable is a factor between 0 and 1 that gives weight to ‘a’ or ‘b’. When ‘t’ is zero then ‘a’ has full weight. When ‘t’ is one then ‘b’ has full weight.
  • Performs quadratic beziér interpolation. This is done by nesting linear interpolations. For more information, see: