Back to Adaptive Vision Library website
You are here: Start » Function Reference » Integer » LerpIntegers
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 integers.
Syntax
void avl::LerpIntegers ( int inInteger0, int inInteger1, float inLambda, int& outInteger )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inInteger0 | int | ||||
inInteger1 | int | ||||
inLambda | float | - - | 0.5f | Interpolation between the input integers where 0.0 value is equal to inInteger0 and 1.0 to inInteger1 | |
outInteger | int& |
Remarks
Please note that:
- interpolation begins at inInteger0,
- for positive inLambda values interpolation is performed in the direction of inInteger1 while for negative -inInteger1.