//

import { aabb3_intersects_ray } from "./aabb3_intersects_ray.js";

/**
 *
 * @param {ArrayLike<number>|number[]|Float32Array} aabb bounding box, order: x0,y0,z0,x1,y1,z1
 * @param {number} aabb_offset
 * @param {number} origin_x
 * @param {number} origin_y
 * @param {number} origin_z
 * @param {number} direction_x
 * @param {number} direction_y
 * @param {number} direction_z
 */
export function aabb3_array_intersects_ray(
    aabb, aabb_offset,
    origin_x, origin_y, origin_z,
    direction_x, direction_y, direction_z
) {
    return aabb3_intersects_ray(
        aabb[aabb_offset], aabb[aabb_offset+1], aabb[aabb_offset+2],
        aabb[aabb_offset+3], aabb[aabb_offset+4], aabb[aabb_offset+5],
        origin_x, origin_y, origin_z,
        direction_x, direction_y, direction_z
    );
}

