Back to Adaptive Vision Library website
You are here: Start » Function Reference » Real » LerpReals
This is Filter Equivalent. This function may be present in generated code, but should not be used in hand-written code.
Linearly interpolates between two reals.
Syntax
void avl::LerpReals ( const float inReal0, const float inReal1, const float inLambda, float& outReal )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inReal0 | const float | ||||
inReal1 | const float | ||||
inLambda | const float | - - | 0.5f | Interpolation between the input reals where 0.0 value is equal to inReal0 and 1.0 to inReal1 | |
outReal | float& |
Remarks
Please note that:
- interpolation begins at inReal0,
- for positive inLambda values interpolation is performed in the direction of inReal1 while for negative -inReal1.