/**
 * Calculates the size of an axis-aligned bounding box (AABB) in 3D space and stores the result in the output array.
 *
 * @param {Float32Array} output - The array where the computed size values will be stored.
 * @param {number} output_offset - The starting index in the output array where the size values will be written.
 * @param {Float32Array} data - The array containing the AABB coordinates. Must contain six consecutive values: [minX, minY, minZ, maxX, maxY, maxZ].
 * @param {number} offset - The starting index in the data array where the AABB coordinates begin.
 * @return {void} This function does not return a value; it writes the calculated size values directly into the output array.
 */
export function aabb3_array_size(output, output_offset, data, offset) {
    const x_size = data[offset + 3] - data[offset];
    const y_size = data[offset + 4] - data[offset + 1];
    const z_size = data[offset + 5] - data[offset + 2];

    output[output_offset] = x_size;
    output[output_offset + 1] = y_size;
    output[output_offset + 2] = z_size;
}