fix: Vector.mul
This commit is contained in:
parent
21c56ced91
commit
ef0b526374
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user