瀏覽代碼

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


Loading…
取消
儲存