fix: Vector.mul

This commit is contained in:
cha0s 2019-03-19 18:04:51 -05:00
parent 21c56ced91
commit ef0b526374

View File

@ -37,7 +37,7 @@ export function sub(l, r) {
// avocado> Vector.mul [3, 5], [5, 5] // avocado> Vector.mul [3, 5], [5, 5]
// [15, 25] // [15, 25]
export function mul(l, r) { export function mul(l, r) {
[l[0] * r[0], l[1] * r[1]]; return [l[0] * r[0], l[1] * r[1]];
} }
// Divide two vectors. // Divide two vectors.