How to lerp in C#?
To calculate lerp in C# we can use the Math logic: a + (b - a) * c.Example
using System;
public class Program
{
public static void Main()
{
float a = 4.10803f;
float b = 5.10803f;
float c = 9.10803f;
float result = a + (b - a) * c;
Console.WriteLine(result);
}
}
Output
13.21606