浏览代码

simplex_interpolator: bug fix (enough for tonight)

undefined
Guillaume Bittoun Sam Hocevar <sam@hocevar.net> 10 年前
父节点
当前提交
a0e31dd6ce
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/lol/math/simplex_interpolator.h

+ 2
- 2
src/lol/math/simplex_interpolator.h 查看文件

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

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;
}


正在加载...
取消
保存