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

CATInterpolateLinear() returns the linear 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 204 of file CATMathUtil.h.


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