LinearInterpolate Data Member Function

Uses a linear function to interpolate the values in the source array with the specified number of steps.

Prototype

int32 LinearInterpolate( Uint32Iterator first, Uint32Iterator last, Uint32Iterator dest, int32 p_nStepCount )

Parameters

Parameter Type Parameter Name Documentation
<Uint32Iterator>firstAn iterator at the start of the range you wish to linear interpolate.
<Uint32Iterator>lastAn iterator at the end of the range you wish to linear interpolate.
<Uint32Iterator>destAn iterator at the destination that stores the interpolated values. There must be enough storage here to store the number of values specified by the step count parameter.
int32p_nStepCountAn <int32> that defines the number of steps in the interpolation. This is the number of values that will be produced.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.