Fix vector.interpolate

This commit is contained in:
Lars Mueller 2021-04-01 00:04:56 +02:00
parent 41f25a9e31
commit 64d3d9672e

@ -119,7 +119,7 @@ metatable.__div = divide
--+ linear interpolation
--: ratio number from 0 (all the first vector) to 1 (all the second vector)
function interpolate(v, w, ratio)
return add(multiply(v, 1 - ratio), multiply(w, ratio))
return add(multiply_scalar(v, 1 - ratio), multiply_scalar(w, ratio))
end
function norm(v)