/**
 *
 * @param {number[]|Float32Array|Float64Array} destination
 * @param {number} destination_offset
 * @param {number} x0
 * @param {number} y0
 * @param {number} z0
 * @param {number} x1
 * @param {number} y1
 * @param {number} z1
 */
export function aabb3_build_corners(destination, destination_offset, x0, y0, z0, x1, y1, z1) {
    destination[destination_offset] = x0;
    destination[destination_offset + 1] = y0;
    destination[destination_offset + 2] = z0;

    destination[destination_offset + 3] = x1;
    destination[destination_offset + 4] = y0;
    destination[destination_offset + 5] = z0;

    destination[destination_offset + 6] = x0;
    destination[destination_offset + 7] = y1;
    destination[destination_offset + 8] = z0;

    destination[destination_offset + 9] = x1;
    destination[destination_offset + 10] = y1;
    destination[destination_offset + 11] = z0;

    destination[destination_offset + 12] = x0;
    destination[destination_offset + 13] = y0;
    destination[destination_offset + 14] = z1;

    destination[destination_offset + 15] = x1;
    destination[destination_offset + 16] = y0;
    destination[destination_offset + 17] = z1;

    destination[destination_offset + 18] = x0;
    destination[destination_offset + 19] = y1;
    destination[destination_offset + 20] = z1;

    destination[destination_offset + 21] = x1;
    destination[destination_offset + 22] = y1;
    destination[destination_offset + 23] = z1;
}
