@thi.ng/matrices 2.1.35 → 2.1.36
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 +1 -1
- package/README.md +7 -10
- package/api.d.ts +19 -19
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
2
|
|
|
3
|
-
# 
|
|
3
|
+
# 
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@thi.ng/matrices)
|
|
6
6
|

|
|
7
|
-
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
This project is part of the
|
|
10
10
|
[@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo.
|
|
@@ -34,7 +34,7 @@ This project is part of the
|
|
|
34
34
|
|
|
35
35
|
## About
|
|
36
36
|
|
|
37
|
-
Matrix & quaternion operations for 2D/3D geometry processing
|
|
37
|
+
Matrix & quaternion operations for 2D/3D geometry processing
|
|
38
38
|
|
|
39
39
|
This package provides 160+ matrix & quaternion operations for 2D/3D
|
|
40
40
|
geometry processing and acts as companion package for
|
|
@@ -77,11 +77,8 @@ ES module import:
|
|
|
77
77
|
|
|
78
78
|
For Node.js REPL:
|
|
79
79
|
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
node --experimental-repl-await
|
|
83
|
-
|
|
84
|
-
> const matrices = await import("@thi.ng/matrices");
|
|
80
|
+
```js
|
|
81
|
+
const matrices = await import("@thi.ng/matrices");
|
|
85
82
|
```
|
|
86
83
|
|
|
87
84
|
Package sizes (brotli'd, pre-treeshake): ESM: 5.02 KB
|
|
@@ -221,7 +218,7 @@ A selection:
|
|
|
221
218
|
|
|
222
219
|
## Authors
|
|
223
220
|
|
|
224
|
-
Karsten Schmidt
|
|
221
|
+
- [Karsten Schmidt](https://thi.ng)
|
|
225
222
|
|
|
226
223
|
If this project contributes to an academic publication, please cite it as:
|
|
227
224
|
|
|
@@ -236,4 +233,4 @@ If this project contributes to an academic publication, please cite it as:
|
|
|
236
233
|
|
|
237
234
|
## License
|
|
238
235
|
|
|
239
|
-
© 2018 - 2022 Karsten Schmidt // Apache
|
|
236
|
+
© 2018 - 2022 Karsten Schmidt // Apache License 2.0
|
package/api.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import type { Tuple, TypedArray } from "@thi.ng/api";
|
|
2
2
|
import type { IVector, MultiVecOp, ReadonlyVec, Vec } from "@thi.ng/vectors";
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
export
|
|
3
|
+
export type Mat = Vec;
|
|
4
|
+
export type ReadonlyMat = ReadonlyVec;
|
|
5
|
+
export type Mat22Like = Tuple<number, 4> | TypedArray;
|
|
6
|
+
export type Mat23Like = Tuple<number, 6> | TypedArray;
|
|
7
|
+
export type Mat33Like = Tuple<number, 9> | TypedArray;
|
|
8
|
+
export type Mat44Like = Tuple<number, 16> | TypedArray;
|
|
9
|
+
export type IMatrix<T> = IVector<T>;
|
|
10
|
+
export type MultiMatOp<T> = MultiVecOp<T>;
|
|
11
|
+
export type MatOp1 = (out: Mat | null) => Mat;
|
|
12
|
+
export type MatOpM = (out: Mat | null, a: ReadonlyMat) => Mat;
|
|
13
|
+
export type MatOpV = (out: Mat | null, a: ReadonlyVec) => Mat;
|
|
14
|
+
export type MatOpMU = (out: Mat | null, a: ReadonlyMat) => Mat | undefined;
|
|
15
|
+
export type MatOpN = (out: Mat | null, n: number) => Mat;
|
|
16
|
+
export type MatOpNV = (out: Mat | null, n: number | ReadonlyVec) => Mat;
|
|
17
|
+
export type MatOpMM = (out: Mat | null, a: ReadonlyMat, b: ReadonlyMat) => Mat;
|
|
18
|
+
export type MatOpMV = (out: Vec | null, a: ReadonlyMat, b: ReadonlyVec) => Vec;
|
|
19
|
+
export type MatOpMN = (out: Mat | null, a: ReadonlyMat, n: number) => Mat;
|
|
20
|
+
export type VecOpM = (out: Vec | null, a: ReadonlyMat) => Vec;
|
|
21
|
+
export type VecOpMN = (out: Vec | null, a: ReadonlyMat, n: number) => Vec;
|
|
22
22
|
export interface MultiMatOp1 extends MatOp1, MultiMatOp<MatOp1> {
|
|
23
23
|
}
|
|
24
24
|
export interface MultiMatOpM extends MatOpM, MultiMatOp<MatOpM> {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/matrices",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.36",
|
|
4
4
|
"description": "Matrix & quaternion operations for 2D/3D geometry processing",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"url": "https://patreon.com/thing_umbrella"
|
|
22
22
|
}
|
|
23
23
|
],
|
|
24
|
-
"author": "Karsten Schmidt
|
|
24
|
+
"author": "Karsten Schmidt (https://thi.ng)",
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "yarn clean && tsc --declaration",
|
|
@@ -34,18 +34,18 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.
|
|
38
|
-
"@thi.ng/checks": "^3.3.
|
|
39
|
-
"@thi.ng/math": "^5.3.
|
|
40
|
-
"@thi.ng/vectors": "^7.5.
|
|
37
|
+
"@thi.ng/api": "^8.6.0",
|
|
38
|
+
"@thi.ng/checks": "^3.3.5",
|
|
39
|
+
"@thi.ng/math": "^5.3.16",
|
|
40
|
+
"@thi.ng/vectors": "^7.5.27"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@microsoft/api-extractor": "^7.33.
|
|
44
|
-
"@thi.ng/testament": "^0.3.
|
|
43
|
+
"@microsoft/api-extractor": "^7.33.7",
|
|
44
|
+
"@thi.ng/testament": "^0.3.7",
|
|
45
45
|
"rimraf": "^3.0.2",
|
|
46
46
|
"tools": "^0.0.1",
|
|
47
|
-
"typedoc": "^0.23.
|
|
48
|
-
"typescript": "^4.
|
|
47
|
+
"typedoc": "^0.23.22",
|
|
48
|
+
"typescript": "^4.9.4"
|
|
49
49
|
},
|
|
50
50
|
"keywords": [
|
|
51
51
|
"2d",
|
|
@@ -269,5 +269,5 @@
|
|
|
269
269
|
],
|
|
270
270
|
"year": 2018
|
|
271
271
|
},
|
|
272
|
-
"gitHead": "
|
|
272
|
+
"gitHead": "f445a9cc8022bcdebbf6ff91fd66ced016d72f01\n"
|
|
273
273
|
}
|