@woosh/meep-engine 2.126.38 → 2.126.39

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": "Pure JavaScript game engine. Fully featured and production ready.",
6
6
  "type": "module",
7
7
  "author": "Alexander Goldring",
8
- "version": "2.126.38",
8
+ "version": "2.126.39",
9
9
  "main": "build/meep.module.js",
10
10
  "module": "build/meep.module.js",
11
11
  "exports": {
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Create a 4x4 matrix that corresponds to scaling transform
3
+ *
4
+ * @param {ArrayLike<number>} output 4x4 matrix output will be written here
5
+ * @param {ArrayLike<number>} scale 3d vector
6
+ * @returns {ArrayLike<number>} input returned for convenience
7
+ */
8
+ export function m4_make_scale(output: ArrayLike<number>, scale: ArrayLike<number>): ArrayLike<number>;
9
+ //# sourceMappingURL=m4_make_scale.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"m4_make_scale.d.ts","sourceRoot":"","sources":["../../../../../../src/core/geom/3d/mat4/m4_make_scale.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,sCAJW,SAAS,CAAC,MAAM,CAAC,SACjB,SAAS,CAAC,MAAM,CAAC,GACf,SAAS,CAAC,MAAM,CAAC,CAyB7B"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Create a 4x4 matrix that corresponds to scaling transform
3
+ *
4
+ * @param {ArrayLike<number>} output 4x4 matrix output will be written here
5
+ * @param {ArrayLike<number>} scale 3d vector
6
+ * @returns {ArrayLike<number>} input returned for convenience
7
+ */
8
+ export function m4_make_scale(output, scale) {
9
+
10
+ output[0] = scale[0]
11
+ output[1] = 0
12
+ output[2] = 0
13
+ output[3] = 0
14
+
15
+ output[4] = 0
16
+ output[5] = scale[1]
17
+ output[6] = 0
18
+ output[7] = 0
19
+
20
+ output[8] = 0
21
+ output[9] = 0
22
+ output[10] = scale[2]
23
+ output[11] = 0
24
+
25
+ output[12] = 0
26
+ output[13] = 0
27
+ output[14] = 0
28
+ output[15] = 1
29
+
30
+ return output;
31
+ }