should divide by scalar1ms ‣
const expected = [0.5, 1.5];
testV2WithAndWithoutDest((a, newDst) => {
return vec2.divScalar(a, 2, newDst);
}, expected, [1, 3]);
should divide0ms ‣
const expected = [2 / 3, 3 / 4];
testV2WithAndWithoutDest((a, b, newDst) => {
return vec2.divide(a, b, newDst);
}, expected, [2, 3], [3, 4]);
should div1ms ‣
const expected = [2 / 3, 3 / 4];
testV2WithAndWithoutDest((a, b, newDst) => {
return vec2.div(a, b, newDst);
}, expected, [2, 3], [3, 4]);