Back to FabImage Library website
You are here: Start » Function Reference » All Functions » Real » LerpReals
This is Filter Equivalent. This function may be present in generated code, but should not be used in hand-written code.
Header: | STD.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Linearly interpolates between two reals.
Syntax
void fil::LerpReals ( const float inReal0, const float inReal1, const float inLambda, float& outReal )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inReal0 | const float | First input Real value to be interpolated | ||
![]() |
inReal1 | const float | Second input Real value to be interpolated | ||
![]() |
inLambda | const float | -![]() ![]() |
0.5f | Interpolation between input Real values where 0.0 value is equal to inReal0 and 1.0 to inReal1 |
![]() |
outReal | float& | Output Real value of interpolation result |
Remarks
Please note that:
- interpolation begins at inReal0,
- for positive inLambda values interpolation is performed in the direction of inReal1 while for negative -inReal1.