Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATInterpolateCubic
CATFloat32 CATInterpolateCubic ( CATFloat32 buffer,
CATFloat32  position,
CATUInt32  bufSize 
) [inline]

CATInterpolateCubic() returns the cubic interpolation of a sample in a buffer of samples.

Note: if you attempt to use on the final sample in a buffer, result is weighted towards the base sample.

Parameters:
buffer - ptr to buffer to interpolate from
position - floating point index into buffer to interpolate
bufSize - number of samples in buffer
Returns:
CATFloat32 - interpolated sample value

Definition at line 138 of file CATMathUtil.h.


Generated on Mon Feb 11 04:10:01 2008 for Game Accessibility Suite by doxygen 1.5.4