/**
 *
 * @param {number[]|Float32Array|Float64Array} result
 * @param {number} result_offset
 * @param {number[]|Float32Array|Float64Array} input
 * @param {number} input_offset
 */
export function v3_negate_array(result, result_offset, input, input_offset) {
    const x = input[input_offset];
    const y = input[input_offset + 1];
    const z = input[input_offset + 2];

    result[result_offset] = -x;
    result[result_offset + 1] = -y;
    result[result_offset + 2] = -z;
}