From 1cd86f9f2430e3079bfcae94faab766a3b96f828 Mon Sep 17 00:00:00 2001 From: Guillaume Bittoun Date: Tue, 18 Nov 2014 22:04:18 +0000 Subject: [PATCH] simplex_interpolator: bug fix --- src/lol/math/simplex_interpolator.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lol/math/simplex_interpolator.h b/src/lol/math/simplex_interpolator.h index 2b280791..b82863f9 100644 --- a/src/lol/math/simplex_interpolator.h +++ b/src/lol/math/simplex_interpolator.h @@ -121,7 +121,8 @@ protected: vec_t result; for (int i = 0 ; i < N ; ++i) - result[i] = dot(base_inverse[i], position); + for (int j = 0 ; j < N ; ++j) + result[i] += this->base_inverse[j][i] * position[j]; return result; }