mirror of
https://github.com/xdsopl/robot36.git
synced 2026-04-05 14:25:25 +00:00
make lerp more stable
This commit is contained in:
parent
90e9fb5d9b
commit
0da40f391e
1 changed files with 1 additions and 1 deletions
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue