import { mortonEncode_magicbits } from "../../../../core/geom/3d/morton/mortonEncode_magicbits.js";

/**
 *
 * @param {Plane} plane
 * @returns {number}
 */
export function planeHash(plane) {
    return mortonEncode_magicbits(plane.normal.x, plane.normal.y, plane.normal.z) ^ plane.constant;
}
