import { n } from "./chunk-C7742RNZ.js"; // node_modules/@arcgis/core/views/3d/webgl-engine/lib/Util.js var a = n(); var o = class { constructor(t) { this.message = t; } toString() { return `AssertException: ${this.message}`; } }; function e(t, n3) { if (!t) throw n3 = n3 || "assert", console.log(new Error(n3).stack), new o(n3); } function c(t, n3, r, a2) { let o2, e2 = (r[0] - t[0]) / n3[0], s = (a2[0] - t[0]) / n3[0]; e2 > s && (o2 = e2, e2 = s, s = o2); let c2 = (r[1] - t[1]) / n3[1], u = (a2[1] - t[1]) / n3[1]; if (c2 > u && (o2 = c2, c2 = u, u = o2), e2 > u || c2 > s) return false; c2 > e2 && (e2 = c2), u < s && (s = u); let i = (r[2] - t[2]) / n3[2], f = (a2[2] - t[2]) / n3[2]; return i > f && (o2 = i, i = f, f = o2), !(e2 > f || i > s) && (f < s && (s = f), !(s < 0)); } export { e, c }; //# sourceMappingURL=chunk-QHWZYJGI.js.map