fmod is not mathematically valid. Replace it by a correct one.

This commit is contained in:
Godzil
2020-03-04 16:15:49 +00:00
parent 107b612130
commit 1b6c14691b
5 changed files with 9 additions and 4 deletions

View File

@@ -21,7 +21,7 @@ public:
double u2 = floor(u * this->width);
double v2 = floor(v * this->height);
if (fmod((u2 + v2), 2) == 0)
if (modulo((u2 + v2), 2) == 0)
{
return this->a;
}