@woosh/meep-engine 2.36.9 → 2.36.12

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.
@@ -753,7 +753,7 @@ export class AABB3 {
753
753
  * @param {number[]|Float32Array|Float64Array} source
754
754
  * @param {number} offset
755
755
  */
756
- readFromArray(source, offset) {
756
+ readFromArray(source, offset = 0) {
757
757
  assert.isNonNegativeInteger(offset, 'offset');
758
758
 
759
759
  this.x0 = source[offset];
@@ -0,0 +1,20 @@
1
+ import { aabb3_intersects_frustum_degree } from "./aabb3_intersects_frustum_degree.js";
2
+
3
+
4
+ /**
5
+ *
6
+ * @param {number[]} aabb
7
+ * @param {number[]} frustum
8
+ * @returns {number}
9
+ */
10
+ export function aabb3_array_intersects_frustum_degree(aabb, frustum) {
11
+
12
+ const x0 = aabb[0];
13
+ const y0 = aabb[1];
14
+ const z0 = aabb[2];
15
+ const x1 = aabb[3];
16
+ const y1 = aabb[4];
17
+ const z1 = aabb[5];
18
+
19
+ return aabb3_intersects_frustum_degree(x0, y0, z0, x1, y1, z1, frustum);
20
+ }