@thi.ng/matrices 2.2.0 → 2.2.2

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2023-10-23T07:37:37Z
3
+ - **Last updated**: 2023-10-25T12:40:55Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/README.md CHANGED
@@ -82,7 +82,7 @@ For Node.js REPL:
82
82
  const matrices = await import("@thi.ng/matrices");
83
83
  ```
84
84
 
85
- Package sizes (brotli'd, pre-treeshake): ESM: 5.08 KB
85
+ Package sizes (brotli'd, pre-treeshake): ESM: 5.11 KB
86
86
 
87
87
  ## Dependencies
88
88
 
package/fit.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { maddN2, maddN3 } from "@thi.ng/vectors/maddn";
2
- import { mulN2 } from "@thi.ng/vectors/muln";
2
+ import { mulN2, mulN3 } from "@thi.ng/vectors/muln";
3
3
  import { safeDiv2, safeDiv3 } from "@thi.ng/vectors/safe-div";
4
4
  import { concat } from "./concat.js";
5
5
  import { scale23, scale44 } from "./scale.js";
@@ -27,4 +27,4 @@ export const fit23 = (out, srcPos, srcSize, destPos, destSize) => concat(out, tr
27
27
  * @param destPos
28
28
  * @param destSize
29
29
  */
30
- export const fit44 = (out, srcPos, srcSize, destPos, destSize) => concat(out, translation44(null, maddN3([], destSize, 0.5, destPos)), scale44(null, safeDiv3([], destSize, srcSize)), translation44(null, mulN2(null, maddN3([], srcSize, 0.5, srcPos), -1)));
30
+ export const fit44 = (out, srcPos, srcSize, destPos, destSize) => concat(out, translation44(null, maddN3([], destSize, 0.5, destPos)), scale44(null, safeDiv3([], destSize, srcSize)), translation44(null, mulN3(null, maddN3([], srcSize, 0.5, srcPos), -1)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/matrices",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
4
  "description": "Matrix & quaternion operations for 2D/3D geometry processing",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -37,7 +37,7 @@
37
37
  "@thi.ng/api": "^8.9.6",
38
38
  "@thi.ng/checks": "^3.4.6",
39
39
  "@thi.ng/math": "^5.6.3",
40
- "@thi.ng/vectors": "^7.7.20"
40
+ "@thi.ng/vectors": "^7.7.22"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@microsoft/api-extractor": "^7.38.0",
@@ -272,5 +272,5 @@
272
272
  ],
273
273
  "year": 2018
274
274
  },
275
- "gitHead": "8d46d9326a9f9b81d65e7e274446f5964f9942ac\n"
275
+ "gitHead": "fc6e14052ed24bf9196896980ceb9f398b6ea6c1\n"
276
276
  }