GCubeSDK
©2026 FenixFox®Studios

LinearInterpolant

LinearInterpolant ⟵ Interpolant

Linear interpolation between keyframes.
Provides simple linear interpolation between two keyframes. This is the most basic interpolation method.

Methods

LinearInterpolant(const vector<f32>& parameterPositions, const vector<f32>& sampleValues, u32 sampleSize, vector<f32>* resultBuffer)

Constructor for linear interpolant

parameterPositions Array of parameter positions (times)
sampleValues Array of sample values
sampleSize Size of each sample
resultBuffer Optional result buffer nullptr

f32 evaluate(f32 t) const override

Evaluates linear interpolation at parameter t

t Parameter value to evaluate

Properties