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 {ArrayLike<number>|number[]|Float32Array} ray ray data, order: origin_x, origin_y, origin_z, direction_x, direction_y, direction_z
 * @returns {boolean}
 */
export function aabb3_array_intersects_ray_array(aabb, ray) {
    return aabb3_intersects_ray(
        aabb[0], aabb[1], aabb[2], aabb[3], aabb[4], aabb[5],
        ray[0], ray[1], ray[2],
        ray[3], ray[4], ray[5]
    );
}
