Fix very wrong™ fract() implementation.
This commit is contained in:
parent
0b84bbb4d4
commit
9ce5ee591f
2 changed files with 3 additions and 3 deletions
|
|
@ -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 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue