@woosh/meep-engine 2.121.3 → 2.121.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/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.121.3",
8
+ "version": "2.121.4",
9
9
  "main": "build/meep.module.js",
10
10
  "module": "build/meep.module.js",
11
11
  "exports": {
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Calculates the size of an axis-aligned bounding box (AABB) in 3D space and stores the result in the output array.
3
+ *
4
+ * @param {Float32Array} output - The array where the computed size values will be stored.
5
+ * @param {number} output_offset - The starting index in the output array where the size values will be written.
6
+ * @param {Float32Array} data - The array containing the AABB coordinates. Must contain six consecutive values: [minX, minY, minZ, maxX, maxY, maxZ].
7
+ * @param {number} offset - The starting index in the data array where the AABB coordinates begin.
8
+ * @return {void} This function does not return a value; it writes the calculated size values directly into the output array.
9
+ */
10
+ export function aabb3_array_size(output: Float32Array, output_offset: number, data: Float32Array, offset: number): void;
11
+ //# sourceMappingURL=aabb3_array_size.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aabb3_array_size.d.ts","sourceRoot":"","sources":["../../../../../../src/core/geom/3d/aabb/aabb3_array_size.js"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,yCANW,YAAY,iBACZ,MAAM,QACN,YAAY,UACZ,MAAM,GACL,IAAI,CAUf"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Calculates the size of an axis-aligned bounding box (AABB) in 3D space and stores the result in the output array.
3
+ *
4
+ * @param {Float32Array} output - The array where the computed size values will be stored.
5
+ * @param {number} output_offset - The starting index in the output array where the size values will be written.
6
+ * @param {Float32Array} data - The array containing the AABB coordinates. Must contain six consecutive values: [minX, minY, minZ, maxX, maxY, maxZ].
7
+ * @param {number} offset - The starting index in the data array where the AABB coordinates begin.
8
+ * @return {void} This function does not return a value; it writes the calculated size values directly into the output array.
9
+ */
10
+ export function aabb3_array_size(output, output_offset, data, offset) {
11
+ const x_size = data[offset + 3] - data[offset];
12
+ const y_size = data[offset + 4] - data[offset + 1];
13
+ const z_size = data[offset + 5] - data[offset + 2];
14
+
15
+ output[output_offset] = x_size;
16
+ output[output_offset + 1] = y_size;
17
+ output[output_offset + 2] = z_size;
18
+ }
@@ -1,5 +1,6 @@
1
1
  /**
2
- * Useful shortcut
2
+ * Number of bytes in a single Gigabyte
3
+ *
3
4
  * NOTE: Single gigabyte value takes up 30 bits, maximum addressable 32 bit value is 4Gb(-1)
4
5
  * @type {number}
5
6
  * @example
@@ -1 +1 @@
1
- {"version":3,"file":"GIGABYTE.d.ts","sourceRoot":"","sources":["../../../../../../src/core/science/units/memory/GIGABYTE.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,uBAJU,MAAM,CAI2B"}
1
+ {"version":3,"file":"GIGABYTE.d.ts","sourceRoot":"","sources":["../../../../../../src/core/science/units/memory/GIGABYTE.js"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,uBAJU,MAAM,CAI2B"}
@@ -1,5 +1,6 @@
1
1
  /**
2
- * Useful shortcut
2
+ * Number of bytes in a single Gigabyte
3
+ *
3
4
  * NOTE: Single gigabyte value takes up 30 bits, maximum addressable 32 bit value is 4Gb(-1)
4
5
  * @type {number}
5
6
  * @example
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Useful shortcut
2
+ * Number of bytes in a single Kilobyte
3
3
  * @type {number}
4
4
  * @example
5
5
  * 100 * KILOBYTE // 100 Kb
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Useful shortcut
2
+ * Number of bytes in a single Kilobyte
3
3
  * @type {number}
4
4
  * @example
5
5
  * 100 * KILOBYTE // 100 Kb
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Useful shortcut
2
+ * Number of bytes in a single Megabyte
3
3
  * @type {number}
4
4
  * @example
5
5
  * 100 * MEGABYTE // 100 Mb
@@ -1 +1 @@
1
- {"version":3,"file":"MEGABYTE.d.ts","sourceRoot":"","sources":["../../../../../../src/core/science/units/memory/MEGABYTE.js"],"names":[],"mappings":"AACA;;;;;GAKG;AACH,uBAJU,MAAM,CAIoB"}
1
+ {"version":3,"file":"MEGABYTE.d.ts","sourceRoot":"","sources":["../../../../../../src/core/science/units/memory/MEGABYTE.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,uBAJU,MAAM,CAIoB"}
@@ -1,6 +1,5 @@
1
-
2
1
  /**
3
- * Useful shortcut
2
+ * Number of bytes in a single Megabyte
4
3
  * @type {number}
5
4
  * @example
6
5
  * 100 * MEGABYTE // 100 Mb
@@ -1,5 +1,6 @@
1
1
  /**
2
- * Useful shortcut
2
+ * Number of bytes in a single Terabyte.
3
+ *
3
4
  * NOTE: this number does not fit in a 32bit integer. A single Tb requires 40 bits to express
4
5
  * @type {number}
5
6
  * @example
@@ -1 +1 @@
1
- {"version":3,"file":"TERABYTE.d.ts","sourceRoot":"","sources":["../../../../../../src/core/science/units/memory/TERABYTE.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,uBAJU,MAAM,CAIkC"}
1
+ {"version":3,"file":"TERABYTE.d.ts","sourceRoot":"","sources":["../../../../../../src/core/science/units/memory/TERABYTE.js"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,uBAJU,MAAM,CAIkC"}
@@ -1,5 +1,6 @@
1
1
  /**
2
- * Useful shortcut
2
+ * Number of bytes in a single Terabyte.
3
+ *
3
4
  * NOTE: this number does not fit in a 32bit integer. A single Tb requires 40 bits to express
4
5
  * @type {number}
5
6
  * @example