GCubeSDK
©2026 FenixFox®Studios

DiscreteInterpolant

DiscreteInterpolant ⟵ Interpolant

Discrete interpolation (no interpolation).
Provides discrete interpolation where values jump instantly between keyframes without any smooth transition.

Methods

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

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

t Parameter value to evaluate

Properties