/**
 * Vector difference `a − b`, written to `result[result_offset .. result_offset+2]`.
 *
 * Scalar-argument, out-parameter form: lets callers compute an edge/offset vector
 * straight into a scratch buffer without allocating a temporary. Allocation-free.
 *
 * @param {number[]|Float32Array|Float64Array} result destination
 * @param {number} result_offset offset into `result`
 * @param {number} ax @param {number} ay @param {number} az  minuend
 * @param {number} bx @param {number} by @param {number} bz  subtrahend
 *
 * @author Alex Goldring
 * @copyright Company Named Limited (c) 2026
 */
export function v3_subtract(result, result_offset, ax, ay, az, bx, by, bz) {
    result[result_offset] = ax - bx;
    result[result_offset + 1] = ay - by;
    result[result_offset + 2] = az - bz;
}
