GCubeSDK
©2026 FenixFox®Studios

CubicInterpolant

CubicInterpolant ⟵ Interpolant

Cubic interpolation between keyframes.
Provides smooth cubic interpolation between keyframes using cubic spline interpolation for natural curves.

Methods

CubicInterpolant(const vector<f32>& parameterPositions, const vector<f32>& sampleValues, u32 sampleSize, vector<f32>* resultBuffer = nullptr)

Constructor for cubic 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 cubic interpolation at parameter t

t Parameter value to evaluate

Properties