@thi.ng/matrices 2.2.0 → 2.2.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/fit.js +2 -2
- package/package.json +3 -3
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,
|
|
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.
|
|
3
|
+
"version": "2.2.1",
|
|
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.
|
|
40
|
+
"@thi.ng/vectors": "^7.7.21"
|
|
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": "
|
|
275
|
+
"gitHead": "dc7eeaba72f3c3977f2d6cc201e595ed6d68e2ad\n"
|
|
276
276
|
}
|