The animator works by rendering a given number of frames given a set of keyframes. Frames that do not correspond exactly to a keyframe must be interpolated. To ensure C2 continuity across segments, cubic interpolation between keyframes is performed.