@woosh/meep-engine 2.87.2 → 2.87.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/build/meep.cjs +4 -4
  2. package/build/meep.min.js +1 -1
  3. package/build/meep.module.js +4 -4
  4. package/package.json +1 -1
  5. package/src/core/binary/align_4.d.ts +7 -0
  6. package/src/core/binary/align_4.d.ts.map +1 -0
  7. package/src/core/binary/align_4.js +14 -0
  8. package/src/core/geom/2d/aabb/aabb2_intersects_ray.d.ts +14 -0
  9. package/src/core/geom/2d/aabb/aabb2_intersects_ray.d.ts.map +1 -0
  10. package/src/core/geom/2d/aabb/aabb2_intersects_ray.js +53 -0
  11. package/src/core/geom/2d/aabb/aabb2_intersects_ray.spec.d.ts +2 -0
  12. package/src/core/geom/2d/aabb/aabb2_intersects_ray.spec.d.ts.map +1 -0
  13. package/src/core/geom/2d/aabb/aabb2_intersects_ray.spec.js +28 -0
  14. package/src/core/geom/2d/hash-grid/SpatialHashGrid.d.ts +52 -0
  15. package/src/core/geom/2d/hash-grid/SpatialHashGrid.d.ts.map +1 -0
  16. package/src/core/geom/2d/hash-grid/SpatialHashGrid.js +317 -0
  17. package/src/core/geom/2d/hash-grid/SpatialHashGrid.spec.d.ts +2 -0
  18. package/src/core/geom/2d/hash-grid/SpatialHashGrid.spec.d.ts.map +1 -0
  19. package/src/core/geom/2d/hash-grid/SpatialHashGrid.spec.js +158 -0
  20. package/src/core/geom/2d/hash-grid/shg_query_raycast.d.ts +14 -0
  21. package/src/core/geom/2d/hash-grid/shg_query_raycast.d.ts.map +1 -0
  22. package/src/core/geom/2d/hash-grid/shg_query_raycast.js +21 -0
  23. package/src/core/geom/2d/lt-grid/LooseTightGrid.d.ts +55 -0
  24. package/src/core/geom/2d/lt-grid/LooseTightGrid.d.ts.map +1 -0
  25. package/src/core/geom/2d/lt-grid/LooseTightGrid.js +221 -0
  26. package/src/core/geom/2d/quad-tree/QuadTreeNode.js +3 -3
  27. package/src/core/geom/2d/quad-tree/qt_query_data_raycast.d.ts +2 -2
  28. package/src/core/geom/2d/quad-tree/qt_query_data_raycast.d.ts.map +1 -1
  29. package/src/core/geom/2d/quad-tree/qt_query_data_raycast.js +22 -9
  30. package/src/core/geom/2d/quad-tree-binary/QuadTree.d.ts +94 -0
  31. package/src/core/geom/2d/quad-tree-binary/QuadTree.d.ts.map +1 -0
  32. package/src/core/geom/2d/quad-tree-binary/QuadTree.js +715 -0
  33. package/src/core/geom/2d/quad-tree-binary/QuadTree.spec.d.ts +2 -0
  34. package/src/core/geom/2d/quad-tree-binary/QuadTree.spec.d.ts.map +1 -0
  35. package/src/core/geom/2d/quad-tree-binary/QuadTree.spec.js +53 -0
  36. package/src/core/geom/3d/morton/de_interleave_2_bits.spec.d.ts +2 -0
  37. package/src/core/geom/3d/morton/de_interleave_2_bits.spec.d.ts.map +1 -0
  38. package/src/core/geom/3d/morton/de_interleave_2_bits.spec.js +21 -0
  39. package/src/core/geom/3d/morton/de_interleave_bits_by_2.d.ts +7 -0
  40. package/src/core/geom/3d/morton/de_interleave_bits_by_2.d.ts.map +1 -0
  41. package/src/core/geom/3d/morton/de_interleave_bits_by_2.js +15 -0
  42. package/src/core/geom/3d/morton/split_by_2.d.ts +1 -1
  43. package/src/core/geom/3d/morton/split_by_2.js +1 -1
  44. package/src/core/geom/3d/morton/split_by_3.d.ts +1 -1
  45. package/src/core/geom/3d/morton/split_by_3.js +1 -1
  46. package/src/core/geom/3d/topology/struct/binary/BinaryElementPool.d.ts +7 -0
  47. package/src/core/geom/3d/topology/struct/binary/BinaryElementPool.d.ts.map +1 -1
  48. package/src/core/geom/3d/topology/struct/binary/BinaryElementPool.js +14 -14
package/build/meep.cjs CHANGED
@@ -54999,7 +54999,7 @@ function aabb3_compute_half_surface_area(x0, y0, z0, x1, y1, z1) {
54999
54999
  * method to separate bits from a given integer 3 positions apart
55000
55000
  * we only look at the first 10 bits
55001
55001
  *
55002
- * @example when input is ABC, output bits are A00B00C
55002
+ * @example when input is ABC, output bits are 00A00B00C
55003
55003
  * @param {number} a
55004
55004
  * @returns {number}
55005
55005
  */
@@ -105808,8 +105808,8 @@ class QuadTreeNode extends AABB2 {
105808
105808
  }
105809
105809
  }
105810
105810
 
105811
- const xm = (x0 + x1) / 2;
105812
- const ym = (y0 + y1) / 2;
105811
+ const xm = (x0 + x1) *0.5;
105812
+ const ym = (y0 + y1) *0.5;
105813
105813
 
105814
105814
  if (datum.y1 < ym) {
105815
105815
  //top
@@ -105823,7 +105823,7 @@ class QuadTreeNode extends AABB2 {
105823
105823
  this.addDatum(datum);
105824
105824
  }
105825
105825
  } else if (datum.y0 >= ym) {
105826
- //top
105826
+ //bottom
105827
105827
  if (datum.x1 < xm) {
105828
105828
  //left
105829
105829
  this.bottomLeft.insertDatum(datum);