Back to Aurora Vision Library website

You are here: Start » Function Reference » All Functions » Real » LerpReals

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: avl
Module: FoundationLite

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
Input value inReal0 const float First input Real value to be interpolated
Input value inReal1 const float Second input Real value to be interpolated
Input value inLambda const float - - 0.5f Interpolation between input Real values where 0.0 value is equal to inReal0 and 1.0 to inReal1
Output value 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.