/**
 * custom Float32Array allocator
 * @returns {Float32Array}
 */
export function allocate_m4() {

    const result = new Float32Array(16);

    // initialize to identity matrix by setting diagonal values
    result[0] = 1;
    result[5] = 1;
    result[10] = 1;
    result[15] = 1;

    return result;
}
