Fix very wrong™ fract() implementation.

This commit is contained in:
Mari the Deer 2022-11-28 17:54:45 +01:00
commit 9ce5ee591f
2 changed files with 3 additions and 3 deletions

View file

@ -253,7 +253,7 @@ Class SWWMUtility
// thanks zscript
static clearscope double fract( double a )
{
return (a<0)?(a+floor(a)):(a-floor(a));
return a-floor(a);
}
static clearscope double lerp( double a, double b, double theta )