game.js
/* Return the inversion of the given affine transformation matrix.
 */
Return the inversion of the given affine transformation matrix.
Return the inversion of the given affine transformation matrix .
function invert(m) {
    let cross = m[0] * m[3] - m[1] * m[2];
    return new Float32Array([
        +m[3] / cross,
        -m[1] / cross,
        -m[2] / cross,
        +m[0] / cross,
        -m[4],
        -m[5]
    ]);
}
function invert ( m ) { let cross = m [ 0 ] * m [ 3 ] - m [ 1 ] * m [ 2 ] ; return new Float32Array ( [ + m [ 3 ] / cross , - m [ 1 ] / cross , - m [ 2 ] / cross , + m [ 0 ] / cross , - m [ 4 ] , - m [ 5 ] ] ) ; }
Return the inversion of the given affine transformation matrix.
Return the inversion of the given affine transformation matrix .