should set0ms ‣
const expected = [2, 3, 4, 0, 22, 33, 44, 0, 222, 333, 444, 0];
testMat3WithAndWithoutDest((v0, v1, v2, v3, v4, v5, v6, v7, v8, newDst) => {
return mat3.set(v0, v1, v2, v3, v4, v5, v6, v7, v8, newDst);
}, expected, 2, 3, 4, 22, 33, 44, 222, 333, 444);
should set translation0ms ‣
const expected = [
0, 1, 2, 0,
4, 5, 6, 0,
11, 22, 1, 1,
];
testMat3WithAndWithoutDest((newDst) => {
return mat3.setTranslation(m, [11, 22], newDst);
}, expected);
should set axis0ms ‣
[
[
11, 22, 2, 0,
4, 5, 6, 0,
8, 9, 10, 0,
],
[
0, 1, 2, 0,
11, 22, 6, 0,
8, 9, 10, 0,
],
].forEach((expected, ndx) => {
testMat3WithAndWithoutDest((newDst) => {
return mat3.setAxis(m, [11, 22], ndx, newDst);
}, expected);
});