//

/**
 * Add two spherical harmonics with 3 bands (9 coefficients)
 *
 * @param {number[]} result
 * @param {number} result_offset
 * @param {number[]} input_0
 * @param {number} input_0_offset
 * @param {number[]} input_1
 * @param {number} input_1_offset
 * @param {number} dimension_count
 */
export function sh3_add(result, result_offset, input_0, input_0_offset, input_1, input_1_offset, dimension_count) {
    const n = 9 * dimension_count;

    for (let i = 0; i < n; i++) {
        result[result_offset + i] = input_0[input_0_offset + i] + input_1[input_1_offset + i];
    }

}
