how to lerp in csharp

Code Example - how to lerp in csharp

                
                        float Lerp(float a, float b, float t)
{
	return a + (b - a) * t;
}
                    
                
 

csharp lerp

                        
                                float Lerp(float min, float max, float x)
{
	return min - (min - max) * x;
}
                            
                        
 

Related code examples