@woosh/meep-engine 2.119.0 → 2.119.1

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/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "description": "Fully featured ECS game engine written in JavaScript",
6
6
  "type": "module",
7
7
  "author": "Alexander Goldring",
8
- "version": "2.119.0",
8
+ "version": "2.119.1",
9
9
  "main": "build/meep.module.js",
10
10
  "module": "build/meep.module.js",
11
11
  "exports": {
@@ -0,0 +1,12 @@
1
+ export class BVHQueryAnd extends BVHQuery {
2
+ /**
3
+ *
4
+ * @param {BVHQuery} left
5
+ * @param {BVHQuery} right
6
+ */
7
+ constructor(left: BVHQuery, right: BVHQuery);
8
+ evaluate(node: any, tree: any): boolean;
9
+ #private;
10
+ }
11
+ import { BVHQuery } from "./BVHQuery.js";
12
+ //# sourceMappingURL=BVHQueryAnd.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BVHQueryAnd.d.ts","sourceRoot":"","sources":["../../../../../../src/core/bvh2/bvh3/query/BVHQueryAnd.js"],"names":[],"mappings":"AAEA;IAUI;;;;OAIG;IACH,kBAHW,QAAQ,SACR,QAAQ,EAOlB;IAED,wCAGC;;CACJ;yBA5BwB,eAAe"}
@@ -0,0 +1,29 @@
1
+ import { BVHQuery } from "./BVHQuery.js";
2
+
3
+ export class BVHQueryAnd extends BVHQuery {
4
+ /**
5
+ * @type {BVHQuery}
6
+ */
7
+ #left;
8
+ /**
9
+ * @type {BVHQuery}
10
+ */
11
+ #right;
12
+
13
+ /**
14
+ *
15
+ * @param {BVHQuery} left
16
+ * @param {BVHQuery} right
17
+ */
18
+ constructor(left, right) {
19
+ super();
20
+
21
+ this.#left = left;
22
+ this.#right = right;
23
+ }
24
+
25
+ evaluate(node, tree) {
26
+ return this.#left.evaluate(node, tree)
27
+ && this.#right.evaluate(node, tree);
28
+ }
29
+ }
@@ -0,0 +1,7 @@
1
+ export class BVHQueryIntersectsAABB extends BVHQuery {
2
+ region: AABB3;
3
+ evaluate(node: any, tree: any): boolean;
4
+ }
5
+ import { BVHQuery } from "./BVHQuery.js";
6
+ import { AABB3 } from "../../../geom/3d/aabb/AABB3.js";
7
+ //# sourceMappingURL=BVHQueryIntersectsAABB.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BVHQueryIntersectsAABB.d.ts","sourceRoot":"","sources":["../../../../../../src/core/bvh2/bvh3/query/BVHQueryIntersectsAABB.js"],"names":[],"mappings":"AAMA;IAEI,cAAqB;IAErB,wCAUC;CACJ;yBAnBwB,eAAe;sBAFlB,gCAAgC"}
@@ -0,0 +1,22 @@
1
+ import { AABB3 } from "../../../geom/3d/aabb/AABB3.js";
2
+ import { aabb3_intersects_aabb3 } from "../../../geom/3d/aabb/aabb3_intersects_aabb3.js";
3
+ import { BVHQuery } from "./BVHQuery.js";
4
+
5
+ const scratch_aabb = new Float32Array(6);
6
+
7
+ export class BVHQueryIntersectsAABB extends BVHQuery {
8
+
9
+ region = new AABB3();
10
+
11
+ evaluate(node, tree) {
12
+
13
+ tree.node_get_aabb(node, scratch_aabb);
14
+
15
+ return aabb3_intersects_aabb3(
16
+ this.region.x0, this.region.y0, this.region.z0,
17
+ this.region.x1, this.region.y1, this.region.z1,
18
+ ...scratch_aabb
19
+ );
20
+
21
+ }
22
+ }
@@ -33,4 +33,4 @@ export class BVHQueryIntersectsRay extends BVHQuery {
33
33
  this.ray
34
34
  );
35
35
  }
36
- }
36
+ }