/**
 *
 * @param {number[]|Float32Array|Float64Array|Uint32Array|Int32Array} target
 * @param {number} target_offset
 * @param {number[]|Float32Array|Float64Array|Uint32Array|Int32Array} source
 * @param {number} source_offset
 */
export function v3_array_copy(target, target_offset, source, source_offset) {
    // read out first to support writing into overlapping ranges of the same array
    const a = source[source_offset];
    const b = source[source_offset + 1];
    const c = source[source_offset + 2];

    target[target_offset] = a;
    target[target_offset + 1] = b;
    target[target_offset + 2] = c;
}