should rotate0ms ‣
const angle = 1.23;
const expected = mat3n.multiply(m, mat3.rotation(angle));
testMat3WithAndWithoutDest((newDst) => {
return mat3.rotate(m, angle, newDst);
}, expected);
should rotateX1ms ‣
const angle = 1.23;
const expected = mat3n.multiply(m, mat3.rotationX(angle));
testMat3WithAndWithoutDest((newDst) => {
return mat3.rotateX(m, angle, newDst);
}, expected);
should rotateY0ms ‣
const angle = 1.23;
const expected = mat3n.multiply(m, mat3.rotationY(angle));
testMat3WithAndWithoutDest((newDst) => {
return mat3.rotateY(m, angle, newDst);
}, expected);
should rotateZ1ms ‣
const angle = 1.23;
const expected = mat3n.multiply(m, mat3.rotationZ(angle));
testMat3WithAndWithoutDest((newDst) => {
return mat3.rotateZ(m, angle, newDst);
}, expected);