const m = [ 2, 8, 3, 0, 5, 6, 7, 0, 9, 10, 11, 0, ]; const expected = [ Math.sqrt(2 * 2 + 8 * 8), Math.sqrt(5 * 5 + 6 * 6), ]; testV2WithAndWithoutDest((newDst) => { return mat3.getScaling(m, newDst); }, expected);