@thi.ng/matrices 2.1.36 → 2.1.38
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 +1 -1
- package/orthagonal.d.ts +3 -3
- package/orthagonal.js +3 -3
- package/outer-product.d.ts +3 -3
- package/outer-product.js +3 -3
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -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
|
package/orthagonal.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ReadonlyMat } from "./api.js";
|
|
2
2
|
/**
|
|
3
|
-
* Returns true, if given square matrix of size `n` is orthagonal, i.e.
|
|
4
|
-
*
|
|
3
|
+
* Returns true, if given square matrix of size `n` is orthagonal, i.e. check if
|
|
4
|
+
* `A * AT = I`.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* https://en.wikipedia.org/wiki/Orthogonal_matrix
|
|
7
7
|
*
|
|
8
8
|
* @param m -
|
|
9
9
|
* @param n -
|
package/orthagonal.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { EPS } from "@thi.ng/math/api";
|
|
2
2
|
import { eqDelta } from "@thi.ng/math/eqdelta";
|
|
3
3
|
/**
|
|
4
|
-
* Returns true, if given square matrix of size `n` is orthagonal, i.e.
|
|
5
|
-
*
|
|
4
|
+
* Returns true, if given square matrix of size `n` is orthagonal, i.e. check if
|
|
5
|
+
* `A * AT = I`.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* https://en.wikipedia.org/wiki/Orthogonal_matrix
|
|
8
8
|
*
|
|
9
9
|
* @param m -
|
|
10
10
|
* @param n -
|
package/outer-product.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { MultiVecOpVV } from "@thi.ng/vectors";
|
|
2
2
|
/**
|
|
3
|
-
* Computes outer/tensor product of vectors `u` and `v`. Returns square
|
|
4
|
-
*
|
|
3
|
+
* Computes outer/tensor product of vectors `u` and `v`. Returns square matrix
|
|
4
|
+
* of same dimensions as vectors, e.g. 3x3 matrix for 3D vectors.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* https://en.wikipedia.org/wiki/Outer_product
|
|
7
7
|
*/
|
|
8
8
|
export declare const outerProduct: MultiVecOpVV;
|
|
9
9
|
export declare const outerProduct2: import("@thi.ng/vectors").VecOpVV;
|
package/outer-product.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { setC, setC4 } from "@thi.ng/vectors/setc";
|
|
2
2
|
import { vop } from "@thi.ng/vectors/vop";
|
|
3
3
|
/**
|
|
4
|
-
* Computes outer/tensor product of vectors `u` and `v`. Returns square
|
|
5
|
-
*
|
|
4
|
+
* Computes outer/tensor product of vectors `u` and `v`. Returns square matrix
|
|
5
|
+
* of same dimensions as vectors, e.g. 3x3 matrix for 3D vectors.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* https://en.wikipedia.org/wiki/Outer_product
|
|
8
8
|
*/
|
|
9
9
|
export const outerProduct = vop(1);
|
|
10
10
|
export const outerProduct2 = outerProduct.add(2, (out, [ux, uy], [vx, vy]) => setC4(out || [], ux * vx, uy * vx, ux * vy, uy * vy));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/matrices",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.38",
|
|
4
4
|
"description": "Matrix & quaternion operations for 2D/3D geometry processing",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.6.
|
|
38
|
-
"@thi.ng/checks": "^3.3.
|
|
39
|
-
"@thi.ng/math": "^5.3.
|
|
40
|
-
"@thi.ng/vectors": "^7.5.
|
|
37
|
+
"@thi.ng/api": "^8.6.2",
|
|
38
|
+
"@thi.ng/checks": "^3.3.6",
|
|
39
|
+
"@thi.ng/math": "^5.3.18",
|
|
40
|
+
"@thi.ng/vectors": "^7.5.29"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@microsoft/api-extractor": "^7.33.7",
|
|
44
|
-
"@thi.ng/testament": "^0.3.
|
|
44
|
+
"@thi.ng/testament": "^0.3.8",
|
|
45
45
|
"rimraf": "^3.0.2",
|
|
46
46
|
"tools": "^0.0.1",
|
|
47
47
|
"typedoc": "^0.23.22",
|
|
@@ -269,5 +269,5 @@
|
|
|
269
269
|
],
|
|
270
270
|
"year": 2018
|
|
271
271
|
},
|
|
272
|
-
"gitHead": "
|
|
272
|
+
"gitHead": "bc6f7f5e2765bb96fe64db804eaf4b2443b47fc6\n"
|
|
273
273
|
}
|