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

/**
 * Works with THREE.js Plane representations as inputs
 * @param {number[]} result
 * @param {number} result_offset
 * @param {Plane} a
 * @param {Plane} b
 * @param {Plane} c
 * @returns {boolean}
 */
export function plane3_three_compute_convex_3_plane_intersection(
    result, result_offset,
    a, b, c
) {
    const a_normal = a.normal;
    const b_normal = b.normal;
    const c_normal = c.normal;

    return plane3_compute_convex_3_plane_intersection(
        result,
        result_offset,
        a_normal.x, a_normal.y, a_normal.z, a.constant,
        b_normal.x, b_normal.y, b_normal.z, b.constant,
        c_normal.x, c_normal.y, c_normal.z, c.constant,
    );
}
