/**
 *
 * @param {number[]} result
 * @param {number[]} a
 * @param {number} scalar
 */
export function m2_multiply_scalar(result, a, scalar) {

    const v0 = a[0] * scalar;
    const v1 = a[1] * scalar;
    const v2 = a[2] * scalar;
    const v3 = a[3] * scalar;

    result[0] = v0;
    result[1] = v1;
    result[2] = v2;
    result[3] = v3;
}
