kopia lustrzana https://github.com/xdsopl/robot36
make lerp more stable
rodzic
90e9fb5d9b
commit
0da40f391e
2
utils.h
2
utils.h
|
@ -29,7 +29,7 @@ float fclampf(float x, float min, float max)
|
|||
|
||||
float flerpf(float a, float b, float x)
|
||||
{
|
||||
return a - a * x + b * x;
|
||||
return a * (1.0 - x) + b * x;
|
||||
}
|
||||
|
||||
char *string_time(char *fmt)
|
||||
|
|
Ładowanie…
Reference in New Issue