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