@lakuna/umath 1.3.4 → 1.3.6
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/LICENSE +1 -1
- package/README.md +7 -9
- package/dist/algorithms/combinations.d.ts +7 -0
- package/dist/algorithms/combinations.d.ts.map +1 -1
- package/dist/algorithms/combinations.js +8 -1
- package/dist/algorithms/combinations.js.map +1 -1
- package/dist/algorithms/degreesToRadians.d.ts +7 -0
- package/dist/algorithms/degreesToRadians.d.ts.map +1 -1
- package/dist/algorithms/degreesToRadians.js +7 -0
- package/dist/algorithms/degreesToRadians.js.map +1 -1
- package/dist/algorithms/factorial.d.ts +6 -0
- package/dist/algorithms/factorial.d.ts.map +1 -1
- package/dist/algorithms/factorial.js +15 -5
- package/dist/algorithms/factorial.js.map +1 -1
- package/dist/algorithms/fibonacci.d.ts +6 -1
- package/dist/algorithms/fibonacci.d.ts.map +1 -1
- package/dist/algorithms/fibonacci.js +6 -1
- package/dist/algorithms/fibonacci.js.map +1 -1
- package/dist/algorithms/greatestCommonDivisor.d.ts +14 -0
- package/dist/algorithms/greatestCommonDivisor.d.ts.map +1 -1
- package/dist/algorithms/greatestCommonDivisor.js +7 -9
- package/dist/algorithms/greatestCommonDivisor.js.map +1 -1
- package/dist/algorithms/hypergeometricPmf.d.ts +9 -0
- package/dist/algorithms/hypergeometricPmf.d.ts.map +1 -1
- package/dist/algorithms/hypergeometricPmf.js +10 -1
- package/dist/algorithms/hypergeometricPmf.js.map +1 -1
- package/dist/algorithms/isPrime.d.ts +6 -0
- package/dist/algorithms/isPrime.d.ts.map +1 -1
- package/dist/algorithms/isPrime.js +8 -1
- package/dist/algorithms/isPrime.js.map +1 -1
- package/dist/algorithms/permutations.d.ts +7 -0
- package/dist/algorithms/permutations.d.ts.map +1 -1
- package/dist/algorithms/permutations.js +8 -1
- package/dist/algorithms/permutations.js.map +1 -1
- package/dist/algorithms/primeFactorization.d.ts +7 -1
- package/dist/algorithms/primeFactorization.d.ts.map +1 -1
- package/dist/algorithms/primeFactorization.js +10 -3
- package/dist/algorithms/primeFactorization.js.map +1 -1
- package/dist/algorithms/radiansToDegrees.d.ts +7 -0
- package/dist/algorithms/radiansToDegrees.d.ts.map +1 -1
- package/dist/algorithms/radiansToDegrees.js +7 -0
- package/dist/algorithms/radiansToDegrees.js.map +1 -1
- package/dist/algorithms/summation.d.ts +8 -0
- package/dist/algorithms/summation.d.ts.map +1 -1
- package/dist/algorithms/summation.js +9 -0
- package/dist/algorithms/summation.js.map +1 -1
- package/dist/index.d.ts +32 -33
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +27 -27
- package/dist/index.js.map +1 -1
- package/dist/linalg/DualQuaternion.d.ts +460 -83
- package/dist/linalg/DualQuaternion.d.ts.map +1 -1
- package/dist/linalg/DualQuaternion.js +514 -133
- package/dist/linalg/DualQuaternion.js.map +1 -1
- package/dist/linalg/Matrix.d.ts +80 -12
- package/dist/linalg/Matrix.d.ts.map +1 -1
- package/dist/linalg/Matrix2.d.ts +337 -52
- package/dist/linalg/Matrix2.d.ts.map +1 -1
- package/dist/linalg/Matrix2.js +345 -61
- package/dist/linalg/Matrix2.js.map +1 -1
- package/dist/linalg/Matrix3.d.ts +470 -72
- package/dist/linalg/Matrix3.d.ts.map +1 -1
- package/dist/linalg/Matrix3.js +488 -94
- package/dist/linalg/Matrix3.js.map +1 -1
- package/dist/linalg/Matrix4.d.ts +842 -137
- package/dist/linalg/Matrix4.d.ts.map +1 -1
- package/dist/linalg/Matrix4.js +896 -175
- package/dist/linalg/Matrix4.js.map +1 -1
- package/dist/linalg/Quaternion.d.ts +395 -70
- package/dist/linalg/Quaternion.d.ts.map +1 -1
- package/dist/linalg/Quaternion.js +416 -70
- package/dist/linalg/Quaternion.js.map +1 -1
- package/dist/linalg/SlowMatrix.d.ts +79 -9
- package/dist/linalg/SlowMatrix.d.ts.map +1 -1
- package/dist/linalg/SlowMatrix.js +147 -27
- package/dist/linalg/SlowMatrix.js.map +1 -1
- package/dist/linalg/SlowSquareMatrix.d.ts +58 -3
- package/dist/linalg/SlowSquareMatrix.d.ts.map +1 -1
- package/dist/linalg/SlowSquareMatrix.js +111 -21
- package/dist/linalg/SlowSquareMatrix.js.map +1 -1
- package/dist/linalg/SquareMatrix.d.ts +26 -3
- package/dist/linalg/SquareMatrix.d.ts.map +1 -1
- package/dist/linalg/Vector.d.ts +148 -24
- package/dist/linalg/Vector.d.ts.map +1 -1
- package/dist/linalg/Vector2.d.ts +484 -84
- package/dist/linalg/Vector2.d.ts.map +1 -1
- package/dist/linalg/Vector2.js +487 -71
- package/dist/linalg/Vector2.js.map +1 -1
- package/dist/linalg/Vector3.d.ts +582 -98
- package/dist/linalg/Vector3.d.ts.map +1 -1
- package/dist/linalg/Vector3.js +625 -134
- package/dist/linalg/Vector3.js.map +1 -1
- package/dist/linalg/Vector4.d.ts +450 -75
- package/dist/linalg/Vector4.d.ts.map +1 -1
- package/dist/linalg/Vector4.js +447 -62
- package/dist/linalg/Vector4.js.map +1 -1
- package/dist/types/AxisAngle.d.ts +4 -1
- package/dist/types/AxisAngle.d.ts.map +1 -1
- package/dist/types/FieldOfView.d.ts +5 -0
- package/dist/types/FieldOfView.d.ts.map +1 -1
- package/dist/utility/BigNumber.d.ts +41 -8
- package/dist/utility/BigNumber.d.ts.map +1 -1
- package/dist/utility/BigNumber.js +47 -5
- package/dist/utility/BigNumber.js.map +1 -1
- package/dist/utility/MagnitudeError.d.ts +5 -0
- package/dist/utility/MagnitudeError.d.ts.map +1 -1
- package/dist/utility/MagnitudeError.js +6 -1
- package/dist/utility/MagnitudeError.js.map +1 -1
- package/dist/utility/MatrixSizeError.d.ts +5 -0
- package/dist/utility/MatrixSizeError.d.ts.map +1 -1
- package/dist/utility/MatrixSizeError.js +5 -0
- package/dist/utility/MatrixSizeError.js.map +1 -1
- package/dist/utility/PartialMatrixError.d.ts +5 -0
- package/dist/utility/PartialMatrixError.d.ts.map +1 -1
- package/dist/utility/PartialMatrixError.js +5 -0
- package/dist/utility/PartialMatrixError.js.map +1 -1
- package/dist/utility/SingularMatrixError.d.ts +8 -0
- package/dist/utility/SingularMatrixError.d.ts.map +1 -1
- package/dist/utility/SingularMatrixError.js +8 -0
- package/dist/utility/SingularMatrixError.js.map +1 -1
- package/dist/utility/epsilon.d.ts +1 -0
- package/dist/utility/epsilon.d.ts.map +1 -1
- package/dist/utility/epsilon.js +1 -0
- package/dist/utility/epsilon.js.map +1 -1
- package/package.json +20 -51
- package/src/algorithms/combinations.ts +4 -4
- package/src/algorithms/degreesToRadians.ts +3 -3
- package/src/algorithms/factorial.ts +13 -8
- package/src/algorithms/fibonacci.ts +3 -3
- package/src/algorithms/greatestCommonDivisor.ts +15 -19
- package/src/algorithms/hypergeometricPmf.ts +5 -6
- package/src/algorithms/isPrime.ts +4 -4
- package/src/algorithms/permutations.ts +4 -4
- package/src/algorithms/primeFactorization.ts +9 -9
- package/src/algorithms/radiansToDegrees.ts +3 -3
- package/src/algorithms/summation.ts +5 -5
- package/src/index.ts +35 -33
- package/src/linalg/DualQuaternion.ts +558 -804
- package/src/linalg/Matrix.ts +35 -36
- package/src/linalg/Matrix2.ts +277 -413
- package/src/linalg/Matrix3.ts +532 -737
- package/src/linalg/Matrix4.ts +1078 -1604
- package/src/linalg/Quaternion.ts +415 -690
- package/src/linalg/SlowMatrix.ts +118 -69
- package/src/linalg/SlowSquareMatrix.ts +85 -56
- package/src/linalg/SquareMatrix.ts +7 -7
- package/src/linalg/Vector.ts +71 -70
- package/src/linalg/Vector2.ts +380 -576
- package/src/linalg/Vector3.ts +544 -840
- package/src/linalg/Vector4.ts +383 -549
- package/src/types/AxisAngle.ts +1 -1
- package/src/utility/BigNumber.ts +33 -42
- package/src/utility/MagnitudeError.ts +4 -4
- package/src/utility/MatrixSizeError.ts +2 -3
- package/src/utility/PartialMatrixError.ts +2 -3
- package/src/utility/SingularMatrixError.ts +2 -2
- package/src/utility/epsilon.ts +1 -4
- package/dist/types/IntegerRepresentation.d.ts +0 -2
- package/dist/types/IntegerRepresentation.d.ts.map +0 -1
- package/dist/types/IntegerRepresentation.js +0 -2
- package/dist/types/IntegerRepresentation.js.map +0 -1
- package/src/types/IntegerRepresentation.ts +0 -2
|
@@ -1,120 +1,210 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import MatrixSizeError from "../utility/MatrixSizeError.js";
|
|
2
|
+
import SingularMatrixError from "../utility/SingularMatrixError.js";
|
|
3
|
+
import SlowMatrix from "./SlowMatrix.js";
|
|
4
|
+
/**
|
|
5
|
+
* A variable-size matrix with the same number of rows and columns.
|
|
6
|
+
* @see [Square matrix](https://en.wikipedia.org/wiki/Square_matrix)
|
|
7
|
+
*/
|
|
4
8
|
export default class SlowSquareMatrix extends SlowMatrix {
|
|
9
|
+
/**
|
|
10
|
+
* Create a variable-size matrix with the same number of rows and columns from the given columns.
|
|
11
|
+
* @param cols - The columns in the matrix.
|
|
12
|
+
* @see [Square matrix](https://en.wikipedia.org/wiki/Square_matrix)
|
|
13
|
+
*/
|
|
5
14
|
constructor(...cols) {
|
|
6
15
|
super(...cols);
|
|
16
|
+
// Ensure that every column is the same height and that the height is equal to the width.
|
|
7
17
|
for (let i = 0; i < this.width; i++) {
|
|
8
|
-
|
|
18
|
+
const col = cols[i];
|
|
19
|
+
if (typeof col === "undefined" || col.length !== this.height) {
|
|
9
20
|
throw new MatrixSizeError();
|
|
10
21
|
}
|
|
11
22
|
}
|
|
12
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* Get the determinant of this matrix.
|
|
26
|
+
* @see [Determinant](https://en.wikipedia.org/wiki/Determinant)
|
|
27
|
+
*/
|
|
13
28
|
get determinant() {
|
|
14
29
|
if (this.length < 1) {
|
|
15
30
|
throw new MatrixSizeError();
|
|
16
31
|
}
|
|
17
|
-
if (this.length
|
|
32
|
+
if (this.length === 1) {
|
|
18
33
|
return this[0] ?? 0;
|
|
19
34
|
}
|
|
20
35
|
let out = 0;
|
|
21
36
|
for (let i = 0; i < this.width; i++) {
|
|
22
|
-
|
|
23
|
-
|
|
37
|
+
const a = this[i * this.height];
|
|
38
|
+
if (typeof a === "undefined") {
|
|
39
|
+
throw new MatrixSizeError();
|
|
40
|
+
}
|
|
41
|
+
out += a * (i % 2 ? -1 : 1) * this.minor(0, i);
|
|
24
42
|
}
|
|
25
43
|
return out;
|
|
26
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* Calculate the adjugate of this matrix.
|
|
47
|
+
* @returns The adjugate of this matrix.
|
|
48
|
+
* @see [Adjugate matrix](https://en.wikipedia.org/wiki/Adjugate_matrix)
|
|
49
|
+
*/
|
|
27
50
|
adjoint() {
|
|
28
51
|
return this.cofactor().transpose();
|
|
29
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* Create a copy of this matrix.
|
|
55
|
+
* @returns A copy of this matrix.
|
|
56
|
+
*/
|
|
30
57
|
clone() {
|
|
31
58
|
const cols = [];
|
|
32
59
|
for (let x = 0; x < this.width; x++) {
|
|
33
60
|
for (let y = 0; y < this.height; y++) {
|
|
34
|
-
|
|
61
|
+
const a = this[x * this.height + y];
|
|
62
|
+
if (typeof a === "undefined") {
|
|
63
|
+
throw new MatrixSizeError();
|
|
64
|
+
}
|
|
65
|
+
(cols[x] ??= [])[y] = a;
|
|
35
66
|
}
|
|
36
67
|
}
|
|
37
68
|
return new SlowSquareMatrix(...cols);
|
|
38
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* Calculate the cofactor of this matrix.
|
|
72
|
+
* @returns The cofactor.
|
|
73
|
+
* @see [Minor](https://en.wikipedia.org/wiki/Minor_(linear_algebra))
|
|
74
|
+
*/
|
|
39
75
|
cofactor() {
|
|
40
76
|
const out = [];
|
|
41
77
|
for (let i = 0; i < this.width; i++) {
|
|
78
|
+
// Column `i`.
|
|
42
79
|
for (let j = 0; j < this.height; j++) {
|
|
80
|
+
// Row `j`.
|
|
43
81
|
(out[j] ??= [])[i] = ((i + j) % 2 ? -1 : 1) * this.minor(i, j);
|
|
44
82
|
}
|
|
45
83
|
}
|
|
46
84
|
return new SlowSquareMatrix(...out);
|
|
47
85
|
}
|
|
86
|
+
/**
|
|
87
|
+
* Reset this matrix to identity.
|
|
88
|
+
* @returns This matrix.
|
|
89
|
+
* @see [Identity matrix](https://en.wikipedia.org/wiki/Identity_matrix)
|
|
90
|
+
*/
|
|
48
91
|
identity() {
|
|
49
92
|
for (let i = 0; i < this.width; i++) {
|
|
50
93
|
for (let j = 0; j < this.height; j++) {
|
|
51
|
-
this[i * this.height + j] = i
|
|
94
|
+
this[i * this.height + j] = i === j ? 1 : 0;
|
|
52
95
|
}
|
|
53
96
|
}
|
|
54
97
|
return this;
|
|
55
98
|
}
|
|
99
|
+
/**
|
|
100
|
+
* Invert this matrix.
|
|
101
|
+
* @returns The inverted matrix.
|
|
102
|
+
* @see [Invertible matrix](https://en.wikipedia.org/wiki/Invertible_matrix)
|
|
103
|
+
*/
|
|
56
104
|
invert() {
|
|
57
105
|
const dim = this.width;
|
|
58
106
|
const clone = this.clone();
|
|
59
107
|
const identity = this.clone().identity();
|
|
60
108
|
for (let i = 0; i < dim; i++) {
|
|
61
109
|
let diagonal = clone[i * dim + i];
|
|
62
|
-
if (
|
|
110
|
+
if (typeof diagonal === "undefined") {
|
|
111
|
+
throw new MatrixSizeError();
|
|
112
|
+
}
|
|
113
|
+
if (diagonal === 0) {
|
|
63
114
|
for (let ii = i + 1; ii < dim; ii++) {
|
|
64
115
|
if (clone[ii * dim + i]) {
|
|
65
116
|
for (let j = 0; j < dim; j++) {
|
|
66
117
|
for (const matrix of [clone, identity]) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
118
|
+
const a = matrix[ii * dim + j];
|
|
119
|
+
const b = matrix[i * dim + j];
|
|
120
|
+
if (typeof a === "undefined" || typeof b === "undefined") {
|
|
121
|
+
throw new MatrixSizeError();
|
|
122
|
+
}
|
|
123
|
+
[matrix[i * dim + j], matrix[ii * dim + j]] = [a, b];
|
|
71
124
|
}
|
|
72
125
|
}
|
|
73
126
|
break;
|
|
74
127
|
}
|
|
75
128
|
}
|
|
76
129
|
diagonal = clone[i * dim + i];
|
|
77
|
-
if (
|
|
130
|
+
if (typeof diagonal === "undefined") {
|
|
131
|
+
throw new MatrixSizeError();
|
|
132
|
+
}
|
|
133
|
+
if (diagonal === 0) {
|
|
78
134
|
throw new SingularMatrixError();
|
|
79
135
|
}
|
|
80
136
|
}
|
|
81
137
|
for (let ii = 0; ii < dim; ii++) {
|
|
82
|
-
if (ii
|
|
138
|
+
if (ii === i) {
|
|
83
139
|
continue;
|
|
84
140
|
}
|
|
85
141
|
const temp = clone[ii * dim + i];
|
|
142
|
+
if (typeof temp === "undefined") {
|
|
143
|
+
throw new MatrixSizeError();
|
|
144
|
+
}
|
|
86
145
|
for (let j = 0; j < dim; j++) {
|
|
87
146
|
for (const matrix of [clone, identity]) {
|
|
88
|
-
|
|
147
|
+
const a = matrix[i * dim + j];
|
|
148
|
+
const b = matrix[ii * dim + j];
|
|
149
|
+
if (typeof a === "undefined" || typeof b === "undefined") {
|
|
150
|
+
throw new MatrixSizeError();
|
|
151
|
+
}
|
|
152
|
+
matrix[ii * dim + j] = b - temp * a;
|
|
89
153
|
}
|
|
90
154
|
}
|
|
91
155
|
}
|
|
92
156
|
}
|
|
93
157
|
return identity;
|
|
94
158
|
}
|
|
159
|
+
/**
|
|
160
|
+
* Calculate the minor of this matrix that results from removing the given row and column.
|
|
161
|
+
* @param row - The row to remove.
|
|
162
|
+
* @param col - The column to remove.
|
|
163
|
+
* @returns The minor.
|
|
164
|
+
* @see [Minor](https://en.wikipedia.org/wiki/Minor_(linear_algebra))
|
|
165
|
+
*/
|
|
95
166
|
minor(row, col) {
|
|
96
167
|
return this.submatrix(row, col).determinant;
|
|
97
168
|
}
|
|
169
|
+
/**
|
|
170
|
+
* Create a submatrix by removing the given row and column from this matrix.
|
|
171
|
+
* @param row - The row to remove.
|
|
172
|
+
* @param col - The column to remove.
|
|
173
|
+
* @returns The submatrix.
|
|
174
|
+
*/
|
|
98
175
|
submatrix(row, col) {
|
|
99
176
|
const cols = [];
|
|
100
177
|
for (let i = 0; i < this.width; i++) {
|
|
101
|
-
if (i
|
|
178
|
+
if (i === col) {
|
|
102
179
|
continue;
|
|
103
180
|
}
|
|
104
181
|
for (let j = 0; j < this.height; j++) {
|
|
105
|
-
if (j
|
|
182
|
+
if (j === row) {
|
|
106
183
|
continue;
|
|
107
184
|
}
|
|
108
|
-
|
|
185
|
+
const a = this[i * this.height + j];
|
|
186
|
+
if (typeof a === "undefined") {
|
|
187
|
+
throw new MatrixSizeError();
|
|
188
|
+
}
|
|
189
|
+
(cols[i < col ? i : i - 1] ??= [])[j < row ? j : j - 1] = a;
|
|
109
190
|
}
|
|
110
191
|
}
|
|
111
192
|
return new SlowSquareMatrix(...cols);
|
|
112
193
|
}
|
|
194
|
+
/**
|
|
195
|
+
* Transpose this matrix.
|
|
196
|
+
* @returns The transpose of this matrix.
|
|
197
|
+
* @see [Transpose](https://en.wikipedia.org/wiki/Transpose)
|
|
198
|
+
*/
|
|
113
199
|
transpose() {
|
|
114
200
|
const cols = [];
|
|
115
201
|
for (let x = 0; x < this.width; x++) {
|
|
116
202
|
for (let y = 0; y < this.height; y++) {
|
|
117
|
-
|
|
203
|
+
const a = this[x * this.height + y];
|
|
204
|
+
if (typeof a === "undefined") {
|
|
205
|
+
throw new MatrixSizeError();
|
|
206
|
+
}
|
|
207
|
+
(cols[y] ??= [])[x] = a;
|
|
118
208
|
}
|
|
119
209
|
}
|
|
120
210
|
return new SlowSquareMatrix(...cols);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SlowSquareMatrix.js","sourceRoot":"","sources":["../../src/linalg/SlowSquareMatrix.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"SlowSquareMatrix.js","sourceRoot":"","sources":["../../src/linalg/SlowSquareMatrix.ts"],"names":[],"mappings":"AAAA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,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;YACzB,CAAC;QACF,CAAC;QAED,OAAO,IAAI,gBAAgB,CAAC,GAAG,IAAI,CAAC,CAAC;IACtC,CAAC;CACD"}
|
|
@@ -1,8 +1,31 @@
|
|
|
1
|
-
import type Matrix from "
|
|
1
|
+
import type { default as Matrix, MatrixLike } from "./Matrix.js";
|
|
2
|
+
/**
|
|
3
|
+
* A matrix with the same number of rows and columns.
|
|
4
|
+
* @see [Square matrix](https://en.wikipedia.org/wiki/Square_matrix)
|
|
5
|
+
*/
|
|
2
6
|
export default interface SquareMatrix extends Matrix {
|
|
7
|
+
/**
|
|
8
|
+
* Get the determinant of this matrix.
|
|
9
|
+
* @see [Determinant](https://en.wikipedia.org/wiki/Determinant)
|
|
10
|
+
*/
|
|
3
11
|
get determinant(): number;
|
|
4
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Calculate the adjugate of this matrix.
|
|
14
|
+
* @returns The adjugate of this matrix.
|
|
15
|
+
* @see [Adjugate matrix](https://en.wikipedia.org/wiki/Adjugate_matrix)
|
|
16
|
+
*/
|
|
17
|
+
adjoint(): MatrixLike;
|
|
18
|
+
/**
|
|
19
|
+
* Reset this matrix to identity.
|
|
20
|
+
* @returns This matrix.
|
|
21
|
+
* @see [Identity matrix](https://en.wikipedia.org/wiki/Identity_matrix)
|
|
22
|
+
*/
|
|
5
23
|
identity(): this;
|
|
6
|
-
|
|
24
|
+
/**
|
|
25
|
+
* Invert this matrix.
|
|
26
|
+
* @returns The inverted matrix.
|
|
27
|
+
* @see [Invertible matrix](https://en.wikipedia.org/wiki/Invertible_matrix)
|
|
28
|
+
*/
|
|
29
|
+
invert(): MatrixLike;
|
|
7
30
|
}
|
|
8
31
|
//# sourceMappingURL=SquareMatrix.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SquareMatrix.d.ts","sourceRoot":"","sources":["../../src/linalg/SquareMatrix.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"SquareMatrix.d.ts","sourceRoot":"","sources":["../../src/linalg/SquareMatrix.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,IAAI,MAAM,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEjE;;;GAGG;AACH,MAAM,CAAC,OAAO,WAAW,YAAa,SAAQ,MAAM;IACnD;;;OAGG;IACH,IAAI,WAAW,IAAI,MAAM,CAAC;IAE1B;;;;OAIG;IACH,OAAO,IAAI,UAAU,CAAC;IAEtB;;;;OAIG;IACH,QAAQ,IAAI,IAAI,CAAC;IAEjB;;;;OAIG;IACH,MAAM,IAAI,UAAU,CAAC;CACrB"}
|
package/dist/linalg/Vector.d.ts
CHANGED
|
@@ -1,30 +1,154 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import type { Vector4Like } from "./Vector4.js";
|
|
2
|
+
/** An object that could be interpreted as a vector. */
|
|
3
|
+
export type VectorLike = Record<number, number>;
|
|
4
|
+
/**
|
|
5
|
+
* A quantity with magnitude and direction.
|
|
6
|
+
* @see [Wikipedia](https://en.wikipedia.org/wiki/Euclidean_vector)
|
|
7
|
+
*/
|
|
8
|
+
export default interface Vector extends VectorLike {
|
|
9
|
+
/**
|
|
10
|
+
* Determine whether this vector is roughly equivalent to another.
|
|
11
|
+
* @param vector - The other vector.
|
|
12
|
+
* @returns Whether the vectors are equivalent.
|
|
13
|
+
*/
|
|
14
|
+
equals(vector: Vector4Like): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Determine whether this vector is exactly equivalent to another.
|
|
17
|
+
* @param vector - The other vector.
|
|
18
|
+
* @returns Whether the vectors are equivalent.
|
|
19
|
+
*/
|
|
20
|
+
exactEquals(vector: Vector4Like): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Add two vectors of the same size.
|
|
23
|
+
* @param vector - The other vector.
|
|
24
|
+
* @returns The sum of the vectors.
|
|
25
|
+
*/
|
|
26
|
+
add(vector: Vector4Like): VectorLike;
|
|
27
|
+
/**
|
|
28
|
+
* Create a copy of this vector.
|
|
29
|
+
* @returns A copy of this vector.
|
|
30
|
+
*/
|
|
31
|
+
clone(): VectorLike;
|
|
32
|
+
/**
|
|
33
|
+
* Copy the values of another vector into this one.
|
|
34
|
+
* @param vector - The vector to copy.
|
|
35
|
+
* @returns This vector.
|
|
36
|
+
*/
|
|
37
|
+
copy(vector: Vector4Like): this;
|
|
38
|
+
/**
|
|
39
|
+
* Multiply this vector by another.
|
|
40
|
+
* @param vector - The other vector.
|
|
41
|
+
* @returns The product of the vectors.
|
|
42
|
+
*/
|
|
43
|
+
multiply(vector: Vector4Like): VectorLike;
|
|
44
|
+
/**
|
|
45
|
+
* Divide this vector by another.
|
|
46
|
+
* @param vector - The other vector.
|
|
47
|
+
* @returns The quotient of the vectors.
|
|
48
|
+
*/
|
|
49
|
+
divide(vector: Vector4Like): VectorLike;
|
|
50
|
+
/**
|
|
51
|
+
* Subtract another vector from this one.
|
|
52
|
+
* @param vector - The other vector.
|
|
53
|
+
* @returns The difference between the vectors.
|
|
54
|
+
*/
|
|
55
|
+
subtract(vector: Vector4Like): VectorLike;
|
|
56
|
+
/**
|
|
57
|
+
* Round up the components of this vector.
|
|
58
|
+
* @returns The rounded vector.
|
|
59
|
+
*/
|
|
60
|
+
ceil(): VectorLike;
|
|
61
|
+
/**
|
|
62
|
+
* Round down the components of this vector.
|
|
63
|
+
* @returns The rounded vector.
|
|
64
|
+
*/
|
|
65
|
+
floor(): VectorLike;
|
|
66
|
+
/**
|
|
67
|
+
* Round the components of this vector.
|
|
68
|
+
* @returns The rounded vector.
|
|
69
|
+
*/
|
|
70
|
+
round(): VectorLike;
|
|
71
|
+
/**
|
|
72
|
+
* Return the minimum of this and another vector.
|
|
73
|
+
* @param vector - The other vector.
|
|
74
|
+
* @returns The minimum.
|
|
75
|
+
*/
|
|
76
|
+
min(vector: Vector4Like): VectorLike;
|
|
77
|
+
/**
|
|
78
|
+
* Return the maximum of this and another vector.
|
|
79
|
+
* @param vector - The other vector.
|
|
80
|
+
* @returns The maximum.
|
|
81
|
+
*/
|
|
82
|
+
max(vector: Vector4Like): VectorLike;
|
|
83
|
+
/**
|
|
84
|
+
* Scale this vector by a scalar.
|
|
85
|
+
* @param scalar - The scalar.
|
|
86
|
+
* @returns The scaled vector.
|
|
87
|
+
*/
|
|
88
|
+
scale(scalar: number): VectorLike;
|
|
89
|
+
/**
|
|
90
|
+
* Add another vector to this one after scaling the other by a scalar.
|
|
91
|
+
* @param vector - The other vector.
|
|
92
|
+
* @param scalar - The scalar.
|
|
93
|
+
* @returns The sum.
|
|
94
|
+
*/
|
|
95
|
+
scaleAndAdd(vector: Vector4Like, scalar: number): VectorLike;
|
|
96
|
+
/**
|
|
97
|
+
* Calculate the Euclidean distance between this vector and another.
|
|
98
|
+
* @param vector - The other vector.
|
|
99
|
+
* @returns The distance.
|
|
100
|
+
*/
|
|
101
|
+
distance(vector: Vector4Like): number;
|
|
102
|
+
/**
|
|
103
|
+
* Calculate the squared Euclidean distance between this vector and another.
|
|
104
|
+
* @param vector - The other vector.
|
|
105
|
+
* @returns The squared distance.
|
|
106
|
+
*/
|
|
107
|
+
squaredDistance(vector: Vector4Like): number;
|
|
108
|
+
/** Get the magnitude (length) of this vector. */
|
|
20
109
|
get magnitude(): number;
|
|
110
|
+
/** Get the squared magnitude (length) of this vector. */
|
|
21
111
|
get squaredMagnitude(): number;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
112
|
+
/**
|
|
113
|
+
* Negate this vector.
|
|
114
|
+
* @returns The negated vector.
|
|
115
|
+
*/
|
|
116
|
+
negate(): VectorLike;
|
|
117
|
+
/**
|
|
118
|
+
* Calculate the multiplicative inverse of the components of this vector.
|
|
119
|
+
* @returns The inverted vector.
|
|
120
|
+
*/
|
|
121
|
+
invert(): VectorLike;
|
|
122
|
+
/**
|
|
123
|
+
* Normalize this vector.
|
|
124
|
+
* @returns The normalized vector.
|
|
125
|
+
* @see [Unit vector](https://en.wikipedia.org/wiki/Unit_vector)
|
|
126
|
+
*/
|
|
127
|
+
normalize(): VectorLike;
|
|
128
|
+
/**
|
|
129
|
+
* Calculate the dot product of this and another vector.
|
|
130
|
+
* @param vector - The other vector.
|
|
131
|
+
* @returns The dot product.
|
|
132
|
+
* @see [Dot product](https://en.wikipedia.org/wiki/Dot_product)
|
|
133
|
+
*/
|
|
134
|
+
dot(vector: Vector4Like): number;
|
|
135
|
+
/**
|
|
136
|
+
* Perform a linear interpolation between this and another vector.
|
|
137
|
+
* @param vector - The other vector.
|
|
138
|
+
* @param t - The interpolation amount (in `[0,1]`).
|
|
139
|
+
* @returns The interpolated vector.
|
|
140
|
+
*/
|
|
141
|
+
lerp(vector: Vector4Like, t: number): VectorLike;
|
|
142
|
+
/**
|
|
143
|
+
* Set this vector to a random value with the given magnitude.
|
|
144
|
+
* @param magnitude - The magnitude.
|
|
145
|
+
* @returns This vector.
|
|
146
|
+
*/
|
|
27
147
|
random(magnitude: number): this;
|
|
148
|
+
/**
|
|
149
|
+
* Set this to the zero vector.
|
|
150
|
+
* @returns This vector.
|
|
151
|
+
*/
|
|
28
152
|
zero(): this;
|
|
29
153
|
}
|
|
30
154
|
//# sourceMappingURL=Vector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Vector.d.ts","sourceRoot":"","sources":["../../src/linalg/Vector.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Vector.d.ts","sourceRoot":"","sources":["../../src/linalg/Vector.ts"],"names":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