chunk-YOPKLVID.js 896 B

12345678910111213141516171819202122232425262728293031323334
  1. import {
  2. n
  3. } from "./chunk-NTUXR253.js";
  4. // node_modules/@arcgis/core/views/3d/webgl-engine/lib/Util.js
  5. var a = n();
  6. var o = class {
  7. constructor(t) {
  8. this.message = t;
  9. }
  10. toString() {
  11. return `AssertException: ${this.message}`;
  12. }
  13. };
  14. function e(t, n3) {
  15. if (!t)
  16. throw n3 = n3 || "assert", console.log(new Error(n3).stack), new o(n3);
  17. }
  18. function c(t, n3, r, a2) {
  19. let o2, e2 = (r[0] - t[0]) / n3[0], s = (a2[0] - t[0]) / n3[0];
  20. e2 > s && (o2 = e2, e2 = s, s = o2);
  21. let c2 = (r[1] - t[1]) / n3[1], u = (a2[1] - t[1]) / n3[1];
  22. if (c2 > u && (o2 = c2, c2 = u, u = o2), e2 > u || c2 > s)
  23. return false;
  24. c2 > e2 && (e2 = c2), u < s && (s = u);
  25. let i = (r[2] - t[2]) / n3[2], f = (a2[2] - t[2]) / n3[2];
  26. return i > f && (o2 = i, i = f, f = o2), !(e2 > f || i > s) && (f < s && (s = f), !(s < 0));
  27. }
  28. export {
  29. e,
  30. c
  31. };
  32. //# sourceMappingURL=chunk-YOPKLVID.js.map