//

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

/**
 *
 * @param {number[]|ArrayLike<number>} sphere
 * @param {number} origin_x
 * @param {number} origin_y
 * @param {number} origin_z
 * @param {number} direction_x
 * @param {number} direction_y
 * @param {number} direction_z
 * @returns {boolean}
 */
export function sphere_array_intersects_ray(
    sphere,
    origin_x, origin_y, origin_z,
    direction_x, direction_y, direction_z
) {
    return sphere_intersects_ray(sphere[0], sphere[1], sphere[2], sphere[3],
        origin_x, origin_y, origin_z,
        direction_x, direction_y, direction_z
    );
}
