Back to Aurora Vision Library website

You are here: Start » Function Reference » All Functions » Integer » LerpIntegers

LerpIntegers


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 integers.

Syntax

void avl::LerpIntegers
(
	int inInteger0,
	int inInteger1,
	float inLambda,
	int& outInteger
)

Parameters

Name Type Range Default Description
Input value inInteger0 int
Input value inInteger1 int
Input value inLambda float - - 0.5f Interpolation between the input integers where 0.0 value is equal to inInteger0 and 1.0 to inInteger1
Output value 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.