@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.
- package/build/meep.cjs +4 -4
- package/build/meep.min.js +1 -1
- package/build/meep.module.js +4 -4
- package/package.json +1 -1
- package/src/core/binary/align_4.d.ts +7 -0
- package/src/core/binary/align_4.d.ts.map +1 -0
- package/src/core/binary/align_4.js +14 -0
- package/src/core/geom/2d/aabb/aabb2_intersects_ray.d.ts +14 -0
- package/src/core/geom/2d/aabb/aabb2_intersects_ray.d.ts.map +1 -0
- package/src/core/geom/2d/aabb/aabb2_intersects_ray.js +53 -0
- package/src/core/geom/2d/aabb/aabb2_intersects_ray.spec.d.ts +2 -0
- package/src/core/geom/2d/aabb/aabb2_intersects_ray.spec.d.ts.map +1 -0
- package/src/core/geom/2d/aabb/aabb2_intersects_ray.spec.js +28 -0
- package/src/core/geom/2d/hash-grid/SpatialHashGrid.d.ts +52 -0
- package/src/core/geom/2d/hash-grid/SpatialHashGrid.d.ts.map +1 -0
- package/src/core/geom/2d/hash-grid/SpatialHashGrid.js +317 -0
- package/src/core/geom/2d/hash-grid/SpatialHashGrid.spec.d.ts +2 -0
- package/src/core/geom/2d/hash-grid/SpatialHashGrid.spec.d.ts.map +1 -0
- package/src/core/geom/2d/hash-grid/SpatialHashGrid.spec.js +158 -0
- package/src/core/geom/2d/hash-grid/shg_query_raycast.d.ts +14 -0
- package/src/core/geom/2d/hash-grid/shg_query_raycast.d.ts.map +1 -0
- package/src/core/geom/2d/hash-grid/shg_query_raycast.js +21 -0
- package/src/core/geom/2d/lt-grid/LooseTightGrid.d.ts +55 -0
- package/src/core/geom/2d/lt-grid/LooseTightGrid.d.ts.map +1 -0
- package/src/core/geom/2d/lt-grid/LooseTightGrid.js +221 -0
- package/src/core/geom/2d/quad-tree/QuadTreeNode.js +3 -3
- package/src/core/geom/2d/quad-tree/qt_query_data_raycast.d.ts +2 -2
- package/src/core/geom/2d/quad-tree/qt_query_data_raycast.d.ts.map +1 -1
- package/src/core/geom/2d/quad-tree/qt_query_data_raycast.js +22 -9
- package/src/core/geom/2d/quad-tree-binary/QuadTree.d.ts +94 -0
- package/src/core/geom/2d/quad-tree-binary/QuadTree.d.ts.map +1 -0
- package/src/core/geom/2d/quad-tree-binary/QuadTree.js +715 -0
- package/src/core/geom/2d/quad-tree-binary/QuadTree.spec.d.ts +2 -0
- package/src/core/geom/2d/quad-tree-binary/QuadTree.spec.d.ts.map +1 -0
- package/src/core/geom/2d/quad-tree-binary/QuadTree.spec.js +53 -0
- package/src/core/geom/3d/morton/de_interleave_2_bits.spec.d.ts +2 -0
- package/src/core/geom/3d/morton/de_interleave_2_bits.spec.d.ts.map +1 -0
- package/src/core/geom/3d/morton/de_interleave_2_bits.spec.js +21 -0
- package/src/core/geom/3d/morton/de_interleave_bits_by_2.d.ts +7 -0
- package/src/core/geom/3d/morton/de_interleave_bits_by_2.d.ts.map +1 -0
- package/src/core/geom/3d/morton/de_interleave_bits_by_2.js +15 -0
- package/src/core/geom/3d/morton/split_by_2.d.ts +1 -1
- package/src/core/geom/3d/morton/split_by_2.js +1 -1
- package/src/core/geom/3d/morton/split_by_3.d.ts +1 -1
- package/src/core/geom/3d/morton/split_by_3.js +1 -1
- package/src/core/geom/3d/topology/struct/binary/BinaryElementPool.d.ts +7 -0
- package/src/core/geom/3d/topology/struct/binary/BinaryElementPool.d.ts.map +1 -1
- 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
|
|
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)
|
|
105812
|
-
const ym = (y0 + y1)
|
|
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
|
-
//
|
|
105826
|
+
//bottom
|
|
105827
105827
|
if (datum.x1 < xm) {
|
|
105828
105828
|
//left
|
|
105829
105829
|
this.bottomLeft.insertDatum(datum);
|