Method Lerp
- Namespace
- Gamelogic.Extensions.Algorithms
- Assembly
- Gamelogic.Extensions.dll
Lerp(int, int, float)
Linearly interpolates between the two given samples.
protected override int Lerp(int outputSampleMin, int outputSampleMax, float t)Parameters
- outputSampleMinint
- The value when t is less than or equal to 0. 
- outputSampleMaxint
- The value when t is greater than or equal to 1. 
- tfloat
- The fraction of the minimum sample to use.