should compute ortho1ms ‣
const left = 2;
const right = 4;
const top = 10;
const bottom = 30;
const near = 15;
const far = 25;
const expected = [
2 / (right - left),
0,
0,
0,
0,
2 / (top - bottom),
0,
0,
0,
0,
1 / (near - far),
0,
(right + left) / (left - right),
(top + bottom) / (bottom - top),
near / (near - far),
1,
];
testMat4WithAndWithoutDest((newDst) => {
return mat4.ortho(left, right, bottom, top, near, far, newDst);
}, expected);