Browse Source

simplex_interpolator: bug fix (enough for tonight)

undefined
Guillaume Bittoun Sam Hocevar <sam@hocevar.net> 10 years ago
parent
commit
a0e31dd6ce
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/lol/math/simplex_interpolator.h

+ 2
- 2
src/lol/math/simplex_interpolator.h View File

@@ -70,8 +70,8 @@ protected:


T norm = sqrt((float)N); T norm = sqrt((float)N);


result += (1 - 4 * floor_coeff / (norm * norm)) * this->samples[floor_point];
divider += (1 - 4 * floor_coeff / (norm * norm));
result += (1 - 2 * floor_coeff / (norm * norm)) * this->samples[floor_point];
divider += (1 - 2 * floor_coeff / (norm * norm));


return result / divider; return result / divider;
} }


Loading…
Cancel
Save