float Lerp(float A, float B, float t) { return A + (B - A) * t; } //single line version: float Lerp(float A, float B, float t) {return A + (B - A) * t;}