curvy 1.0.9 → 2.0.0-alpha.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.
Files changed (173) hide show
  1. package/dist/characteristic/index.d.mts +88 -0
  2. package/dist/characteristic/index.mjs +2 -0
  3. package/dist/curve/index.d.mts +2 -0
  4. package/dist/curve/index.mjs +2 -0
  5. package/dist/interval/index.d.mts +3 -0
  6. package/dist/interval/index.mjs +3 -0
  7. package/dist/matrix/index.d.mts +2 -0
  8. package/dist/matrix/index.mjs +267 -0
  9. package/dist/matrix/index.mjs.map +1 -0
  10. package/dist/number.d.mts +280 -0
  11. package/dist/number.mjs +140 -0
  12. package/dist/number.mjs.map +1 -0
  13. package/dist/path/index.d.mts +261 -0
  14. package/dist/path/index.mjs +325 -0
  15. package/dist/path/index.mjs.map +1 -0
  16. package/dist/polynomial/index.d.mts +2 -0
  17. package/dist/polynomial/index.mjs +3 -0
  18. package/dist/shared/characteristic-B9nCh_cx.mjs +104 -0
  19. package/dist/shared/characteristic-B9nCh_cx.mjs.map +1 -0
  20. package/dist/shared/chunk-25Hzd3z8.mjs +13 -0
  21. package/dist/shared/cubic-BajUY0JT.d.mts +1100 -0
  22. package/dist/shared/cubic-CpHAx8cC.mjs +479 -0
  23. package/dist/shared/cubic-CpHAx8cC.mjs.map +1 -0
  24. package/dist/shared/interval-05CR6eBf.mjs +421 -0
  25. package/dist/shared/interval-05CR6eBf.mjs.map +1 -0
  26. package/dist/shared/interval-Dy-RMEE3.d.mts +533 -0
  27. package/dist/shared/interval2d-8IBZnUOq.mjs +108 -0
  28. package/dist/shared/interval2d-8IBZnUOq.mjs.map +1 -0
  29. package/dist/shared/interval2d-C2id9u31.d.mts +172 -0
  30. package/dist/shared/matrix4x4-Ck2WROK-.mjs +440 -0
  31. package/dist/shared/matrix4x4-Ck2WROK-.mjs.map +1 -0
  32. package/dist/shared/matrix4x4-Dm_tSiH1.d.mts +1183 -0
  33. package/dist/shared/quadratic-CamozcFc.mjs +330 -0
  34. package/dist/shared/quadratic-CamozcFc.mjs.map +1 -0
  35. package/dist/shared/rationalCubic2d-B6g97ryJ.d.mts +308 -0
  36. package/dist/shared/rationalCubic2d-BEgUGSFf.mjs +295 -0
  37. package/dist/shared/rationalCubic2d-BEgUGSFf.mjs.map +1 -0
  38. package/dist/shared/rationalCubic2d-Bys2Uory.mjs +695 -0
  39. package/dist/shared/rationalCubic2d-Bys2Uory.mjs.map +1 -0
  40. package/dist/shared/rationalCubic2d-DlQfBURs.d.mts +818 -0
  41. package/dist/shared/solution-CrtLfqEq.mjs +306 -0
  42. package/dist/shared/solution-CrtLfqEq.mjs.map +1 -0
  43. package/dist/shared/solution-sNQ-ZVhN.d.mts +251 -0
  44. package/dist/{pipe.d.mts → shared/utils-MCckigYk.d.mts} +44 -26
  45. package/dist/shared/vector2-CL1HDdPr.mjs +187 -0
  46. package/dist/shared/vector2-CL1HDdPr.mjs.map +1 -0
  47. package/dist/shared/vector2-DPUY3_eA.d.mts +470 -0
  48. package/dist/shared/vector2.internal-DU_E808S.mjs +97 -0
  49. package/dist/shared/vector2.internal-DU_E808S.mjs.map +1 -0
  50. package/dist/shared/vector3-D-tv_aKL.mjs +204 -0
  51. package/dist/shared/vector3-D-tv_aKL.mjs.map +1 -0
  52. package/dist/shared/vector3-DqeOZtOB.d.mts +703 -0
  53. package/dist/shared/vector4-5KbjoHVj.mjs +109 -0
  54. package/dist/shared/vector4-5KbjoHVj.mjs.map +1 -0
  55. package/dist/shared/vector4.internal-5XcaX12X.mjs +163 -0
  56. package/dist/shared/vector4.internal-5XcaX12X.mjs.map +1 -0
  57. package/dist/solution/index.d.mts +2 -0
  58. package/dist/solution/index.mjs +2 -0
  59. package/dist/splines/index.d.mts +701 -0
  60. package/dist/splines/index.mjs +734 -0
  61. package/dist/splines/index.mjs.map +1 -0
  62. package/dist/utils.d.mts +2 -205
  63. package/dist/utils.mjs +88 -52
  64. package/dist/utils.mjs.map +1 -1
  65. package/dist/vector/index.d.mts +3 -0
  66. package/dist/vector/index.mjs +4 -0
  67. package/package.json +49 -92
  68. package/dist/curve/cubic2d.d.mts +0 -109
  69. package/dist/curve/cubic2d.d.ts +0 -109
  70. package/dist/curve/cubic2d.mjs +0 -80
  71. package/dist/curve/cubic2d.mjs.map +0 -1
  72. package/dist/curve/linear2d.d.mts +0 -94
  73. package/dist/curve/linear2d.d.ts +0 -94
  74. package/dist/curve/linear2d.mjs +0 -46
  75. package/dist/curve/linear2d.mjs.map +0 -1
  76. package/dist/curve/quadratic2d.d.mts +0 -117
  77. package/dist/curve/quadratic2d.d.ts +0 -117
  78. package/dist/curve/quadratic2d.mjs +0 -82
  79. package/dist/curve/quadratic2d.mjs.map +0 -1
  80. package/dist/interval.d.mts +0 -251
  81. package/dist/interval.d.ts +0 -251
  82. package/dist/interval.mjs +0 -86
  83. package/dist/interval.mjs.map +0 -1
  84. package/dist/matrix/matrix2x2.d.mts +0 -320
  85. package/dist/matrix/matrix2x2.d.ts +0 -320
  86. package/dist/matrix/matrix2x2.mjs +0 -25
  87. package/dist/matrix/matrix2x2.mjs.map +0 -1
  88. package/dist/matrix/matrix3x3.d.mts +0 -370
  89. package/dist/matrix/matrix3x3.d.ts +0 -370
  90. package/dist/matrix/matrix3x3.mjs +0 -28
  91. package/dist/matrix/matrix3x3.mjs.map +0 -1
  92. package/dist/matrix/matrix4x4.d.mts +0 -381
  93. package/dist/matrix/matrix4x4.d.ts +0 -381
  94. package/dist/matrix/matrix4x4.mjs +0 -178
  95. package/dist/matrix/matrix4x4.mjs.map +0 -1
  96. package/dist/path/cubic2d.d.mts +0 -95
  97. package/dist/path/cubic2d.d.ts +0 -95
  98. package/dist/path/cubic2d.mjs +0 -60
  99. package/dist/path/cubic2d.mjs.map +0 -1
  100. package/dist/path/linear2d.d.mts +0 -95
  101. package/dist/path/linear2d.d.ts +0 -95
  102. package/dist/path/linear2d.mjs +0 -53
  103. package/dist/path/linear2d.mjs.map +0 -1
  104. package/dist/path/quadratic2d.d.mts +0 -95
  105. package/dist/path/quadratic2d.d.ts +0 -95
  106. package/dist/path/quadratic2d.mjs +0 -57
  107. package/dist/path/quadratic2d.mjs.map +0 -1
  108. package/dist/pipe.d.ts +0 -58
  109. package/dist/pipe.mjs +0 -92
  110. package/dist/pipe.mjs.map +0 -1
  111. package/dist/polynomial/cubic.d.mts +0 -7
  112. package/dist/polynomial/cubic.d.ts +0 -7
  113. package/dist/polynomial/cubic.mjs +0 -133
  114. package/dist/polynomial/cubic.mjs.map +0 -1
  115. package/dist/polynomial/linear.d.mts +0 -7
  116. package/dist/polynomial/linear.d.ts +0 -7
  117. package/dist/polynomial/linear.mjs +0 -24
  118. package/dist/polynomial/linear.mjs.map +0 -1
  119. package/dist/polynomial/quadratic.d.mts +0 -7
  120. package/dist/polynomial/quadratic.d.ts +0 -7
  121. package/dist/polynomial/quadratic.mjs +0 -27
  122. package/dist/polynomial/quadratic.mjs.map +0 -1
  123. package/dist/shared/curvy.Bf5TIk31.d.mts +0 -22
  124. package/dist/shared/curvy.Bf5TIk31.d.ts +0 -22
  125. package/dist/shared/curvy.BkkW8Tx9.mjs +0 -102
  126. package/dist/shared/curvy.BkkW8Tx9.mjs.map +0 -1
  127. package/dist/shared/curvy.BxdGW9he.mjs +0 -116
  128. package/dist/shared/curvy.BxdGW9he.mjs.map +0 -1
  129. package/dist/shared/curvy.C_sCeg9J.mjs +0 -66
  130. package/dist/shared/curvy.C_sCeg9J.mjs.map +0 -1
  131. package/dist/shared/curvy.Cg8lZVUz.d.ts +0 -688
  132. package/dist/shared/curvy.DCt1gGII.mjs +0 -147
  133. package/dist/shared/curvy.DCt1gGII.mjs.map +0 -1
  134. package/dist/shared/curvy.DJ4xO0al.mjs +0 -63
  135. package/dist/shared/curvy.DJ4xO0al.mjs.map +0 -1
  136. package/dist/shared/curvy.DmVFTi0N.mjs +0 -35
  137. package/dist/shared/curvy.DmVFTi0N.mjs.map +0 -1
  138. package/dist/shared/curvy.FDaj5rlj.d.mts +0 -688
  139. package/dist/shared/curvy.lktriTpx.mjs +0 -101
  140. package/dist/shared/curvy.lktriTpx.mjs.map +0 -1
  141. package/dist/shared/curvy.mLFprrGm.mjs +0 -85
  142. package/dist/shared/curvy.mLFprrGm.mjs.map +0 -1
  143. package/dist/shared/curvy.r6f1j287.mjs +0 -76
  144. package/dist/shared/curvy.r6f1j287.mjs.map +0 -1
  145. package/dist/splines/basis2d.d.mts +0 -130
  146. package/dist/splines/basis2d.d.ts +0 -130
  147. package/dist/splines/basis2d.mjs +0 -90
  148. package/dist/splines/basis2d.mjs.map +0 -1
  149. package/dist/splines/bezier2d.d.mts +0 -182
  150. package/dist/splines/bezier2d.d.ts +0 -182
  151. package/dist/splines/bezier2d.mjs +0 -23
  152. package/dist/splines/bezier2d.mjs.map +0 -1
  153. package/dist/splines/cardinal2d.d.mts +0 -178
  154. package/dist/splines/cardinal2d.d.ts +0 -178
  155. package/dist/splines/cardinal2d.mjs +0 -114
  156. package/dist/splines/cardinal2d.mjs.map +0 -1
  157. package/dist/splines/hermite2d.d.mts +0 -124
  158. package/dist/splines/hermite2d.d.ts +0 -124
  159. package/dist/splines/hermite2d.mjs +0 -63
  160. package/dist/splines/hermite2d.mjs.map +0 -1
  161. package/dist/utils.d.ts +0 -205
  162. package/dist/vector/vector2.d.mts +0 -324
  163. package/dist/vector/vector2.d.ts +0 -324
  164. package/dist/vector/vector2.mjs +0 -30
  165. package/dist/vector/vector2.mjs.map +0 -1
  166. package/dist/vector/vector3.d.mts +0 -417
  167. package/dist/vector/vector3.d.ts +0 -417
  168. package/dist/vector/vector3.mjs +0 -38
  169. package/dist/vector/vector3.mjs.map +0 -1
  170. package/dist/vector/vector4.d.mts +0 -205
  171. package/dist/vector/vector4.d.ts +0 -205
  172. package/dist/vector/vector4.mjs +0 -20
  173. package/dist/vector/vector4.mjs.map +0 -1
@@ -1,381 +0,0 @@
1
- import { F as FourDimensionalIndex, a as FourDimensionalComponent } from '../shared/curvy.Bf5TIk31.mjs';
2
- import { Pipeable } from '../pipe.mjs';
3
- import { Vector4 } from '../vector/vector4.mjs';
4
- import { Matrix3x3 } from './matrix3x3.mjs';
5
- import '../vector/vector3.mjs';
6
- import './matrix2x2.mjs';
7
- import '../vector/vector2.mjs';
8
-
9
- declare const Matrix4x4TypeId: unique symbol;
10
- type Matrix4x4TypeId = typeof Matrix4x4TypeId;
11
-
12
- /**
13
- * A coordinate in a 4x4 matrix.
14
- *
15
- * @since 1.0.0
16
- */
17
- type Matrix4x4Coordinate = FourDimensionalIndex | FourDimensionalComponent;
18
- /**
19
- * A 4x4 matrix.
20
- *
21
- * All fields are readonly and immutable, and all operations create new instances.
22
- *
23
- * @since 1.0.0
24
- */
25
- interface Matrix4x4 extends Pipeable {
26
- readonly [Matrix4x4TypeId]: Matrix4x4TypeId;
27
- /**
28
- * The value of the first row and first column.
29
- */
30
- readonly m00: number;
31
- /**
32
- * The value of the first row and second column.
33
- */
34
- readonly m01: number;
35
- /**
36
- * The value of the first row and third column.
37
- */
38
- readonly m02: number;
39
- /**
40
- * The value of the first row and fourth column.
41
- */
42
- readonly m03: number;
43
- /**
44
- * The value of the second row and first column.
45
- */
46
- readonly m10: number;
47
- /**
48
- * The value of the second row and second column.
49
- */
50
- readonly m11: number;
51
- /**
52
- * The value of the second row and third column.
53
- */
54
- readonly m12: number;
55
- /**
56
- * The value of the second row and fourth column.
57
- */
58
- readonly m13: number;
59
- /**
60
- * The value of the third row and first column.
61
- */
62
- readonly m20: number;
63
- /**
64
- * The value of the third row and second column.
65
- */
66
- readonly m21: number;
67
- /**
68
- * The value of the third row and third column.
69
- */
70
- readonly m22: number;
71
- /**
72
- * The value of the third row and fourth column.
73
- */
74
- readonly m23: number;
75
- /**
76
- * The value of the fourth row and first column.
77
- */
78
- readonly m30: number;
79
- /**
80
- * The value of the fourth row and second column.
81
- */
82
- readonly m31: number;
83
- /**
84
- * The value of the fourth row and third column.
85
- */
86
- readonly m32: number;
87
- /**
88
- * The value of the fourth row and fourth column.
89
- */
90
- readonly m33: number;
91
- }
92
- /**
93
- * Checks if a value is a `Matrix4x4`.
94
- *
95
- * @param m - The value to check.
96
- * @returns `true` if the value is a `Matrix4x4`, `false` otherwise.
97
- * @since 1.0.0
98
- */
99
- declare const isMatrix4x4: (m: unknown) => m is Matrix4x4;
100
- /**
101
- * Creates a new `Matrix4x4` instance.
102
- *
103
- * @param m00 - The value of the first row and first column.
104
- * @param m01 - The value of the first row and second column.
105
- * @param m02 - The value of the first row and third column.
106
- * @param m03 - The value of the first row and fourth column.
107
- * @param m10 - The value of the second row and first column.
108
- * @param m11 - The value of the second row and second column.
109
- * @param m12 - The value of the second row and third column.
110
- * @param m13 - The value of the second row and fourth column.
111
- * @param m20 - The value of the third row and first column.
112
- * @param m21 - The value of the third row and second column.
113
- * @param m22 - The value of the third row and third column.
114
- * @param m23 - The value of the third row and fourth column.
115
- * @param m30 - The value of the fourth row and first column.
116
- * @param m31 - The value of the fourth row and second column.
117
- * @param m32 - The value of the fourth row and third column.
118
- * @param m33 - The value of the fourth row and fourth column.
119
- * @returns A new `Matrix4x4` instance.
120
- * @since 1.0.0
121
- */
122
- declare const make: (m00?: number, m01?: number, m02?: number, m03?: number, m10?: number, m11?: number, m12?: number, m13?: number, m20?: number, m21?: number, m22?: number, m23?: number, m30?: number, m31?: number, m32?: number, m33?: number) => Matrix4x4;
123
- /**
124
- * Creates a new `Matrix4x4` instance from four row vectors.
125
- *
126
- * @param v0 - The first row vector.
127
- * @param v1 - The second row vector.
128
- * @param v2 - The third row vector.
129
- * @param v3 - The fourth row vector.
130
- * @returns A new `Matrix4x4` instance.
131
- * @since 1.0.0
132
- */
133
- declare const fromRows: (v0: Vector4, v1: Vector4, v2: Vector4, v3: Vector4) => Matrix4x4;
134
- /**
135
- * Creates a new `Matrix4x4` instance from four column vectors.
136
- *
137
- * @param v0 - The first column vector.
138
- * @param v1 - The second column vector.
139
- * @param v2 - The third column vector.
140
- * @param v3 - The fourth column vector.
141
- */
142
- declare const fromColumns: (v0: Vector4, v1: Vector4, v2: Vector4, v3: Vector4) => Matrix4x4;
143
- declare const setRow: {
144
- /**
145
- * Sets a row of a `Matrix4x4` to a new vector.
146
- *
147
- * @param m - The matrix to modify.
148
- * @param row - The row to set.
149
- * @param v - The new vector.
150
- * @returns A new `Matrix4x4` instance with the specified row set to the new vector.
151
- * @since 1.0.0
152
- */
153
- (m: Matrix4x4, row: Matrix4x4Coordinate, v: Vector4): Matrix4x4;
154
- /**
155
- * Sets a row of a `Matrix4x4` to a new vector.
156
- *
157
- * @param row - The row to set.
158
- * @param v - The new vector.
159
- * @returns A function that takes a matrix and returns a new `Matrix4x4` instance with the specified row set to the new vector.
160
- * @since 1.0.0
161
- */
162
- (row: Matrix4x4Coordinate, v: Vector4): (m: Matrix4x4) => Matrix4x4;
163
- };
164
- declare const setColumn: {
165
- /**
166
- * Sets a column of a `Matrix4x4` to a new vector.
167
- *
168
- * @param m - The matrix to modify.
169
- * @param column - The column to set.
170
- * @param v - The new vector.
171
- * @returns A new `Matrix4x4` instance with the specified column set to the new vector.
172
- * @since 1.0.0
173
- */
174
- (m: Matrix4x4, column: Matrix4x4Coordinate, v: Vector4): Matrix4x4;
175
- /**
176
- * Sets a column of a `Matrix4x4` to a new vector.
177
- *
178
- * @param column - The column to set.
179
- * @param v - The new vector.
180
- * @returns A function that takes a matrix and returns a new `Matrix4x4` instance with the specified column set to the new vector.
181
- * @since 1.0.0
182
- */
183
- (column: Matrix4x4Coordinate, v: Vector4): (m: Matrix4x4) => Matrix4x4;
184
- };
185
- /**
186
- * Calculates the determinant of a `Matrix4x4`.
187
- *
188
- * @param m - The matrix to calculate the determinant of.
189
- * @returns The determinant of the matrix.
190
- * @since 1.0.0
191
- */
192
- declare const determinant: (m: Matrix4x4) => number;
193
- /**
194
- * Calculates the minor of a `Matrix4x4` at a given row and column.
195
- *
196
- * @param m - The matrix to calculate the minor of.
197
- * @param row - The row to exclude.
198
- * @param column - The column to exclude.
199
- * @returns The minor of the matrix at the given row and column.
200
- */
201
- declare const minor: (m: Matrix4x4, row: Matrix4x4Coordinate, column: Matrix4x4Coordinate) => Matrix3x3;
202
- declare const vectorProductLeft: {
203
- /**
204
- * Calculates the left vector product of a `Matrix4x4` and a `Vector4`.
205
- *
206
- * @example
207
- * ```ts
208
- * import * as Matrix4x4 from 'curvy/matrix4x4'
209
- * import * as Vector4 from 'curvy/vector4'
210
- *
211
- * const m = Matrix4x4.make(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16)
212
- * const v = Vector4.make(17, 18, 19, 20)
213
- *
214
- * // Result:
215
- * // x = 1 * 17 + 2 * 18 + 3 * 19 + 4 * 20
216
- * // y = 5 * 17 + 6 * 18 + 7 * 19 + 8 * 20
217
- * // z = 9 * 17 + 10 * 18 + 11 * 19 + 12 * 20
218
- * // w = 13 * 17 + 14 * 18 + 15 * 19 + 16 * 20
219
- * const result = Matrix4x4.vectorProductLeft(m, v)
220
- * ```
221
- * @param m - The matrix to multiply.
222
- * @param v - The vector to multiply.
223
- * @returns The resulting vector.
224
- */
225
- (m: Matrix4x4, v: Vector4): Vector4;
226
- /**
227
- * Calculates the left vector product of a `Matrix4x4` and a `Vector4`.
228
- *
229
- * @example
230
- * ```ts
231
- * import * as Matrix4x4 from 'curvy/matrix4x4'
232
- * import * as Vector4 from 'curvy/vector4'
233
- *
234
- * const m = Matrix4x4.make(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16)
235
- * const v = Vector4.make(17, 18, 19, 20)
236
- *
237
- * // Result:
238
- * // x = 1 * 17 + 2 * 18 + 3 * 19 + 4 * 20
239
- * // y = 5 * 17 + 6 * 18 + 7 * 19 + 8 * 20
240
- * // z = 9 * 17 + 10 * 18 + 11 * 19 + 12 * 20
241
- * // w = 13 * 17 + 14 * 18 + 15 * 19 + 16 * 20
242
- * const result = Matrix4x4.vectorProductLeft(v)(m)
243
- * ```
244
- */
245
- (v: Vector4): (m: Matrix4x4) => Vector4;
246
- };
247
- declare const vectorProductRight: {
248
- /**
249
- * Calculates the right vector product of a `Matrix4x4` and a `Vector4`.
250
- *
251
- * @example
252
- * ```ts
253
- * import * as Matrix4x4 from 'curvy/matrix4x4'
254
- * import * as Vector4 from 'curvy/vector4'
255
- *
256
- * const m = Matrix4x4.make(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16)
257
- * const v = Vector4.make(17, 18, 19, 20)
258
- *
259
- * // Result:
260
- * // x = 1 * 17 + 5 * 18 + 9 * 19 + 13 * 20
261
- * // y = 2 * 17 + 6 * 18 + 10 * 19 + 14 * 20
262
- * // z = 3 * 17 + 7 * 18 + 11 * 19 + 15 * 20
263
- * // w = 4 * 17 + 8 * 18 + 12 * 19 + 16 * 20
264
- * const result = Matrix4x4.vectorProductRight(m, v)
265
- * ```
266
- */
267
- (m: Matrix4x4, v: Vector4): Vector4;
268
- /**
269
- * Calculates the right vector product of a `Matrix4x4` and a `Vector4`.
270
- *
271
- * @example
272
- * ```ts
273
- * import * as Matrix4x4 from 'curvy/matrix4x4'
274
- * import * as Vector4 from 'curvy/vector4'
275
- *
276
- * const m = Matrix4x4.make(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16)
277
- * const v = Vector4.make(17, 18, 19, 20)
278
- *
279
- * // Result:
280
- * // x = 1 * 17 + 5 * 18 + 9 * 19 + 13 * 20
281
- * // y = 2 * 17 + 6 * 18 + 10 * 19 + 14 * 20
282
- * // z = 3 * 17 + 7 * 18 + 11 * 19 + 15 * 20
283
- * // w = 4 * 17 + 8 * 18 + 12 * 19 + 16 * 20
284
- * const result = Matrix4x4.vectorProductRight(v)(m)
285
- */
286
- (v: Vector4): (m: Matrix4x4) => Vector4;
287
- };
288
- declare const solveSystem: {
289
- /**
290
- * Solves a system of linear equations represented by a `Matrix4x4` and a `Vector4`.
291
- *
292
- * @param m - The matrix representing the coefficients of the equations.
293
- * @param v - The vector representing the constants of the equations.
294
- * @returns The solution vector.
295
- */
296
- (m: Matrix4x4, v: Vector4): Vector4;
297
- /**
298
- * Solves a system of linear equations represented by a `Matrix4x4` and a `Vector4`.
299
- *
300
- * @param v - The vector representing the constants of the equations.
301
- * @returns A function that takes a matrix and returns the solution vector.
302
- */
303
- (v: Vector4): (m: Matrix4x4) => Vector4;
304
- };
305
- /**
306
- * Returns the rows of a `Matrix4x4` as an array of vectors.
307
- *
308
- * @param m - The matrix to convert.
309
- * @returns An array of vectors representing the rows of the matrix.
310
- * @since 1.0.0
311
- */
312
- declare const toRows: (m: Matrix4x4) => [Vector4, Vector4, Vector4, Vector4];
313
- /**
314
- * Returns the columns of a `Matrix4x4` as an array of vectors.
315
- *
316
- * @param m - The matrix to convert.
317
- * @returns An array of vectors representing the columns of the matrix.
318
- * @since 1.0.0
319
- */
320
- declare const toColumns: (m: Matrix4x4) => [Vector4, Vector4, Vector4, Vector4];
321
- declare const rowVector: {
322
- /**
323
- * Returns a row vector from a `Matrix4x4`.
324
- *
325
- * @param m - The matrix to get the row vector from.
326
- * @param row - The row index.
327
- * @returns The row vector.
328
- */
329
- (m: Matrix4x4, row: Matrix4x4Coordinate): Vector4;
330
- /**
331
- * Returns a row vector from a `Matrix4x4`.
332
- *
333
- * @param row - The row index.
334
- * @returns A function that takes a matrix and returns the row vector.
335
- */
336
- (row: Matrix4x4Coordinate): (m: Matrix4x4) => Vector4;
337
- };
338
- declare const columnVector: {
339
- /**
340
- * Returns a column vector from a `Matrix4x4`.
341
- *
342
- * @param m - The matrix to get the column vector from.
343
- * @param column - The column index.
344
- * @returns The column vector.
345
- */
346
- (m: Matrix4x4, column: Matrix4x4Coordinate): Vector4;
347
- /**
348
- * Returns a column vector from a `Matrix4x4`.
349
- *
350
- * @param column - The column index.
351
- * @returns A function that takes a matrix and returns the column vector.
352
- */
353
- (column: Matrix4x4Coordinate): (m: Matrix4x4) => Vector4;
354
- };
355
- /**
356
- * Transposes a `Matrix4x4`.
357
- *
358
- * @param m - The matrix to transpose.
359
- * @returns The transposed matrix.
360
- * @since 1.0.0
361
- */
362
- declare const transpose: (m: Matrix4x4) => Matrix4x4;
363
- /**
364
- * Reverses the rows of a `Matrix4x4`.
365
- *
366
- * @param m - The matrix to reverse the rows of.
367
- * @returns The matrix with the rows reversed.
368
- * @since 1.0.0
369
- */
370
- declare const reverseRows: (m: Matrix4x4) => Matrix4x4;
371
- /**
372
- * Reverses the columns of a `Matrix4x4`.
373
- *
374
- * @param m - The matrix to reverse the columns of.
375
- * @returns The matrix with the columns reversed.
376
- * @since 1.0.0
377
- */
378
- declare const reverseColumns: (m: Matrix4x4) => Matrix4x4;
379
-
380
- export { columnVector, determinant, fromColumns, fromRows, isMatrix4x4, make, minor, reverseColumns, reverseRows, rowVector, setColumn, setRow, solveSystem, toColumns, toRows, transpose, vectorProductLeft, vectorProductRight };
381
- export type { Matrix4x4, Matrix4x4Coordinate };