import { assert } from "../../../assert.js";

/**
 *
 * @param {ArrayLike<number>|Float32Array|number[]} result
 * @param {number} result_offset
 * @param {number} x0
 * @param {number} y0
 * @param {number} z0
 * @param {number} x1
 * @param {number} y1
 * @param {number} z1
 */
export function aabb3_array_set(
    result, result_offset,
    x0, y0, z0,
    x1, y1, z1
) {
    assert.isNonNegativeInteger(result_offset, 'result_offset');
    assert.isNumber(x0, 'x0');
    assert.isNumber(y0, 'y0');
    assert.isNumber(z0, 'z0');
    assert.isNumber(x1, 'x1');
    assert.isNumber(y1, 'y1');
    assert.isNumber(z1, 'z1');

    result[result_offset] = x0;
    result[result_offset + 1] = y0;
    result[result_offset + 2] = z0;

    result[result_offset + 3] = x1;
    result[result_offset + 4] = y1;
    result[result_offset + 5] = z1;
}