@math.gl/core 4.0.0-alpha.4 → 4.0.0

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.
@@ -7,14 +7,14 @@
7
7
  *
8
8
  * @returns a new 4x4 matrix
9
9
  */
10
- export function create(): any[] | Float32Array;
10
+ export declare function create(): any[] | Float32Array;
11
11
  /**
12
12
  * Creates a new mat4 initialized with values from an existing matrix
13
13
  *
14
14
  * @param {ReadonlyMat4} a matrix to clone
15
15
  * @returns {mat4} a new 4x4 matrix
16
16
  */
17
- export function clone(a: ReadonlyMat4): mat4;
17
+ export declare function clone(a: any): any[] | Float32Array;
18
18
  /**
19
19
  * Copy the values from one mat4 to another
20
20
  *
@@ -22,7 +22,7 @@ export function clone(a: ReadonlyMat4): mat4;
22
22
  * @param {ReadonlyMat4} a the source matrix
23
23
  * @returns {mat4} out
24
24
  */
25
- export function copy(out: mat4, a: ReadonlyMat4): mat4;
25
+ export declare function copy(out: any, a: any): any;
26
26
  /**
27
27
  * Create a new mat4 with the given values
28
28
  *
@@ -44,7 +44,7 @@ export function copy(out: mat4, a: ReadonlyMat4): mat4;
44
44
  * @param {Number} m33 Component in column 3, row 3 position (index 15)
45
45
  * @returns {mat4} A new mat4
46
46
  */
47
- export function fromValues(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): mat4;
47
+ export declare function fromValues(m00: any, m01: any, m02: any, m03: any, m10: any, m11: any, m12: any, m13: any, m20: any, m21: any, m22: any, m23: any, m30: any, m31: any, m32: any, m33: any): any[] | Float32Array;
48
48
  /**
49
49
  * Set the components of a mat4 to the given values
50
50
  *
@@ -67,14 +67,14 @@ export function fromValues(m00: number, m01: number, m02: number, m03: number, m
67
67
  * @param {Number} m33 Component in column 3, row 3 position (index 15)
68
68
  * @returns {mat4} out
69
69
  */
70
- export function set(out: mat4, 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): mat4;
70
+ export declare function set(out: any, m00: any, m01: any, m02: any, m03: any, m10: any, m11: any, m12: any, m13: any, m20: any, m21: any, m22: any, m23: any, m30: any, m31: any, m32: any, m33: any): any;
71
71
  /**
72
72
  * Set a mat4 to the identity matrix
73
73
  *
74
74
  * @param {mat4} out the receiving matrix
75
75
  * @returns {mat4} out
76
76
  */
77
- export function identity(out: mat4): mat4;
77
+ export declare function identity(out: any): any;
78
78
  /**
79
79
  * Transpose the values of a mat4
80
80
  *
@@ -82,7 +82,7 @@ export function identity(out: mat4): mat4;
82
82
  * @param {ReadonlyMat4} a the source matrix
83
83
  * @returns {mat4} out
84
84
  */
85
- export function transpose(out: mat4, a: ReadonlyMat4): mat4;
85
+ export declare function transpose(out: any, a: any): any;
86
86
  /**
87
87
  * Inverts a mat4
88
88
  *
@@ -90,7 +90,7 @@ export function transpose(out: mat4, a: ReadonlyMat4): mat4;
90
90
  * @param {ReadonlyMat4} a the source matrix
91
91
  * @returns {mat4} out
92
92
  */
93
- export function invert(out: mat4, a: ReadonlyMat4): mat4;
93
+ export declare function invert(out: any, a: any): any;
94
94
  /**
95
95
  * Calculates the adjugate of a mat4
96
96
  *
@@ -98,14 +98,14 @@ export function invert(out: mat4, a: ReadonlyMat4): mat4;
98
98
  * @param {ReadonlyMat4} a the source matrix
99
99
  * @returns {mat4} out
100
100
  */
101
- export function adjoint(out: mat4, a: ReadonlyMat4): mat4;
101
+ export declare function adjoint(out: any, a: any): any;
102
102
  /**
103
103
  * Calculates the determinant of a mat4
104
104
  *
105
105
  * @param {ReadonlyMat4} a the source matrix
106
106
  * @returns {Number} determinant of a
107
107
  */
108
- export function determinant(a: ReadonlyMat4): number;
108
+ export declare function determinant(a: any): number;
109
109
  /**
110
110
  * Multiplies two mat4s
111
111
  *
@@ -114,7 +114,7 @@ export function determinant(a: ReadonlyMat4): number;
114
114
  * @param {ReadonlyMat4} b the second operand
115
115
  * @returns {mat4} out
116
116
  */
117
- export function multiply(out: mat4, a: ReadonlyMat4, b: ReadonlyMat4): mat4;
117
+ export declare function multiply(out: any, a: any, b: any): any;
118
118
  /**
119
119
  * Translate a mat4 by the given vector
120
120
  *
@@ -123,7 +123,7 @@ export function multiply(out: mat4, a: ReadonlyMat4, b: ReadonlyMat4): mat4;
123
123
  * @param {ReadonlyVec3} v vector to translate by
124
124
  * @returns {mat4} out
125
125
  */
126
- export function translate(out: mat4, a: ReadonlyMat4, v: ReadonlyVec3): mat4;
126
+ export declare function translate(out: any, a: any, v: any): any;
127
127
  /**
128
128
  * Scales the mat4 by the dimensions in the given vec3 not using vectorization
129
129
  *
@@ -132,7 +132,7 @@ export function translate(out: mat4, a: ReadonlyMat4, v: ReadonlyVec3): mat4;
132
132
  * @param {ReadonlyVec3} v the vec3 to scale the matrix by
133
133
  * @returns {mat4} out
134
134
  **/
135
- export function scale(out: mat4, a: ReadonlyMat4, v: ReadonlyVec3): mat4;
135
+ export declare function scale(out: any, a: any, v: any): any;
136
136
  /**
137
137
  * Rotates a mat4 by the given angle around the given axis
138
138
  *
@@ -142,7 +142,7 @@ export function scale(out: mat4, a: ReadonlyMat4, v: ReadonlyVec3): mat4;
142
142
  * @param {ReadonlyVec3} axis the axis to rotate around
143
143
  * @returns {mat4} out
144
144
  */
145
- export function rotate(out: mat4, a: ReadonlyMat4, rad: number, axis: ReadonlyVec3): mat4;
145
+ export declare function rotate(out: any, a: any, rad: any, axis: any): any;
146
146
  /**
147
147
  * Rotates a matrix by the given angle around the X axis
148
148
  *
@@ -151,7 +151,7 @@ export function rotate(out: mat4, a: ReadonlyMat4, rad: number, axis: ReadonlyVe
151
151
  * @param {Number} rad the angle to rotate the matrix by
152
152
  * @returns {mat4} out
153
153
  */
154
- export function rotateX(out: mat4, a: ReadonlyMat4, rad: number): mat4;
154
+ export declare function rotateX(out: any, a: any, rad: any): any;
155
155
  /**
156
156
  * Rotates a matrix by the given angle around the Y axis
157
157
  *
@@ -160,7 +160,7 @@ export function rotateX(out: mat4, a: ReadonlyMat4, rad: number): mat4;
160
160
  * @param {Number} rad the angle to rotate the matrix by
161
161
  * @returns {mat4} out
162
162
  */
163
- export function rotateY(out: mat4, a: ReadonlyMat4, rad: number): mat4;
163
+ export declare function rotateY(out: any, a: any, rad: any): any;
164
164
  /**
165
165
  * Rotates a matrix by the given angle around the Z axis
166
166
  *
@@ -169,7 +169,7 @@ export function rotateY(out: mat4, a: ReadonlyMat4, rad: number): mat4;
169
169
  * @param {Number} rad the angle to rotate the matrix by
170
170
  * @returns {mat4} out
171
171
  */
172
- export function rotateZ(out: mat4, a: ReadonlyMat4, rad: number): mat4;
172
+ export declare function rotateZ(out: any, a: any, rad: any): any;
173
173
  /**
174
174
  * Creates a matrix from a vector translation
175
175
  * This is equivalent to (but much faster than):
@@ -181,7 +181,7 @@ export function rotateZ(out: mat4, a: ReadonlyMat4, rad: number): mat4;
181
181
  * @param {ReadonlyVec3} v Translation vector
182
182
  * @returns {mat4} out
183
183
  */
184
- export function fromTranslation(out: mat4, v: ReadonlyVec3): mat4;
184
+ export declare function fromTranslation(out: any, v: any): any;
185
185
  /**
186
186
  * Creates a matrix from a vector scaling
187
187
  * This is equivalent to (but much faster than):
@@ -193,7 +193,7 @@ export function fromTranslation(out: mat4, v: ReadonlyVec3): mat4;
193
193
  * @param {ReadonlyVec3} v Scaling vector
194
194
  * @returns {mat4} out
195
195
  */
196
- export function fromScaling(out: mat4, v: ReadonlyVec3): mat4;
196
+ export declare function fromScaling(out: any, v: any): any;
197
197
  /**
198
198
  * Creates a matrix from a given angle around a given axis
199
199
  * This is equivalent to (but much faster than):
@@ -206,7 +206,7 @@ export function fromScaling(out: mat4, v: ReadonlyVec3): mat4;
206
206
  * @param {ReadonlyVec3} axis the axis to rotate around
207
207
  * @returns {mat4} out
208
208
  */
209
- export function fromRotation(out: mat4, rad: number, axis: ReadonlyVec3): mat4;
209
+ export declare function fromRotation(out: any, rad: any, axis: any): any;
210
210
  /**
211
211
  * Creates a matrix from the given angle around the X axis
212
212
  * This is equivalent to (but much faster than):
@@ -218,7 +218,7 @@ export function fromRotation(out: mat4, rad: number, axis: ReadonlyVec3): mat4;
218
218
  * @param {Number} rad the angle to rotate the matrix by
219
219
  * @returns {mat4} out
220
220
  */
221
- export function fromXRotation(out: mat4, rad: number): mat4;
221
+ export declare function fromXRotation(out: any, rad: any): any;
222
222
  /**
223
223
  * Creates a matrix from the given angle around the Y axis
224
224
  * This is equivalent to (but much faster than):
@@ -230,7 +230,7 @@ export function fromXRotation(out: mat4, rad: number): mat4;
230
230
  * @param {Number} rad the angle to rotate the matrix by
231
231
  * @returns {mat4} out
232
232
  */
233
- export function fromYRotation(out: mat4, rad: number): mat4;
233
+ export declare function fromYRotation(out: any, rad: any): any;
234
234
  /**
235
235
  * Creates a matrix from the given angle around the Z axis
236
236
  * This is equivalent to (but much faster than):
@@ -242,7 +242,7 @@ export function fromYRotation(out: mat4, rad: number): mat4;
242
242
  * @param {Number} rad the angle to rotate the matrix by
243
243
  * @returns {mat4} out
244
244
  */
245
- export function fromZRotation(out: mat4, rad: number): mat4;
245
+ export declare function fromZRotation(out: any, rad: any): any;
246
246
  /**
247
247
  * Creates a matrix from a quaternion rotation and vector translation
248
248
  * This is equivalent to (but much faster than):
@@ -258,7 +258,7 @@ export function fromZRotation(out: mat4, rad: number): mat4;
258
258
  * @param {ReadonlyVec3} v Translation vector
259
259
  * @returns {mat4} out
260
260
  */
261
- export function fromRotationTranslation(out: mat4, q: quat4, v: ReadonlyVec3): mat4;
261
+ export declare function fromRotationTranslation(out: any, q: any, v: any): any;
262
262
  /**
263
263
  * Creates a new mat4 from a dual quat.
264
264
  *
@@ -266,7 +266,7 @@ export function fromRotationTranslation(out: mat4, q: quat4, v: ReadonlyVec3): m
266
266
  * @param {ReadonlyQuat2} a Dual Quaternion
267
267
  * @returns {mat4} mat4 receiving operation result
268
268
  */
269
- export function fromQuat2(out: mat4, a: ReadonlyQuat2): mat4;
269
+ export declare function fromQuat2(out: any, a: any): any;
270
270
  /**
271
271
  * Returns the translation vector component of a transformation
272
272
  * matrix. If a matrix is built with fromRotationTranslation,
@@ -276,7 +276,7 @@ export function fromQuat2(out: mat4, a: ReadonlyQuat2): mat4;
276
276
  * @param {ReadonlyMat4} mat Matrix to be decomposed (input)
277
277
  * @return {vec3} out
278
278
  */
279
- export function getTranslation(out: vec3, mat: ReadonlyMat4): vec3;
279
+ export declare function getTranslation(out: any, mat: any): any;
280
280
  /**
281
281
  * Returns the scaling factor component of a transformation
282
282
  * matrix. If a matrix is built with fromRotationTranslationScale
@@ -287,7 +287,7 @@ export function getTranslation(out: vec3, mat: ReadonlyMat4): vec3;
287
287
  * @param {ReadonlyMat4} mat Matrix to be decomposed (input)
288
288
  * @return {vec3} out
289
289
  */
290
- export function getScaling(out: vec3, mat: ReadonlyMat4): vec3;
290
+ export declare function getScaling(out: any, mat: any): any;
291
291
  /**
292
292
  * Returns a quaternion representing the rotational component
293
293
  * of a transformation matrix. If a matrix is built with
@@ -297,7 +297,7 @@ export function getScaling(out: vec3, mat: ReadonlyMat4): vec3;
297
297
  * @param {ReadonlyMat4} mat Matrix to be decomposed (input)
298
298
  * @return {quat} out
299
299
  */
300
- export function getRotation(out: quat, mat: ReadonlyMat4): quat;
300
+ export declare function getRotation(out: any, mat: any): any;
301
301
  /**
302
302
  * Decomposes a transformation matrix into its rotation, translation
303
303
  * and scale components. Returns only the rotation component
@@ -307,7 +307,7 @@ export function getRotation(out: quat, mat: ReadonlyMat4): quat;
307
307
  * @param {ReadonlyMat4} mat Matrix to be decomposed (input)
308
308
  * @returns {quat} out_r
309
309
  */
310
- export function decompose(out_r: quat, out_t: vec3, out_s: vec3, mat: ReadonlyMat4): quat;
310
+ export declare function decompose(out_r: any, out_t: any, out_s: any, mat: any): any;
311
311
  /**
312
312
  * Creates a matrix from a quaternion rotation, vector translation and vector scale
313
313
  * This is equivalent to (but much faster than):
@@ -325,7 +325,7 @@ export function decompose(out_r: quat, out_t: vec3, out_s: vec3, mat: ReadonlyMa
325
325
  * @param {ReadonlyVec3} s Scaling vector
326
326
  * @returns {mat4} out
327
327
  */
328
- export function fromRotationTranslationScale(out: mat4, q: quat4, v: ReadonlyVec3, s: ReadonlyVec3): mat4;
328
+ export declare function fromRotationTranslationScale(out: any, q: any, v: any, s: any): any;
329
329
  /**
330
330
  * Creates a matrix from a quaternion rotation, vector translation and vector scale, rotating and scaling around the given origin
331
331
  * This is equivalent to (but much faster than):
@@ -346,7 +346,7 @@ export function fromRotationTranslationScale(out: mat4, q: quat4, v: ReadonlyVec
346
346
  * @param {ReadonlyVec3} o The origin vector around which to scale and rotate
347
347
  * @returns {mat4} out
348
348
  */
349
- export function fromRotationTranslationScaleOrigin(out: mat4, q: quat4, v: ReadonlyVec3, s: ReadonlyVec3, o: ReadonlyVec3): mat4;
349
+ export declare function fromRotationTranslationScaleOrigin(out: any, q: any, v: any, s: any, o: any): any;
350
350
  /**
351
351
  * Calculates a 4x4 matrix from the given quaternion
352
352
  *
@@ -355,7 +355,7 @@ export function fromRotationTranslationScaleOrigin(out: mat4, q: quat4, v: Reado
355
355
  *
356
356
  * @returns {mat4} out
357
357
  */
358
- export function fromQuat(out: mat4, q: ReadonlyQuat): mat4;
358
+ export declare function fromQuat(out: any, q: any): any;
359
359
  /**
360
360
  * Generates a frustum matrix with the given bounds
361
361
  *
@@ -368,7 +368,7 @@ export function fromQuat(out: mat4, q: ReadonlyQuat): mat4;
368
368
  * @param {Number} far Far bound of the frustum
369
369
  * @returns {mat4} out
370
370
  */
371
- export function frustum(out: mat4, left: number, right: number, bottom: number, top: number, near: number, far: number): mat4;
371
+ export declare function frustum(out: any, left: any, right: any, bottom: any, top: any, near: any, far: any): any;
372
372
  /**
373
373
  * Generates a perspective projection matrix with the given bounds.
374
374
  * The near/far clip planes correspond to a normalized device coordinate Z range of [-1, 1],
@@ -382,7 +382,12 @@ export function frustum(out: mat4, left: number, right: number, bottom: number,
382
382
  * @param {number} far Far bound of the frustum, can be null or Infinity
383
383
  * @returns {mat4} out
384
384
  */
385
- export function perspectiveNO(out: mat4, fovy: number, aspect: number, near: number, far: number): mat4;
385
+ export declare function perspectiveNO(out: any, fovy: any, aspect: any, near: any, far: any): any;
386
+ /**
387
+ * Alias for {@link mat4.perspectiveNO}
388
+ * @function
389
+ */
390
+ export declare const perspective: typeof perspectiveNO;
386
391
  /**
387
392
  * Generates a perspective projection matrix suitable for WebGPU with the given bounds.
388
393
  * The near/far clip planes correspond to a normalized device coordinate Z range of [0, 1],
@@ -396,7 +401,7 @@ export function perspectiveNO(out: mat4, fovy: number, aspect: number, near: num
396
401
  * @param {number} far Far bound of the frustum, can be null or Infinity
397
402
  * @returns {mat4} out
398
403
  */
399
- export function perspectiveZO(out: mat4, fovy: number, aspect: number, near: number, far: number): mat4;
404
+ export declare function perspectiveZO(out: any, fovy: any, aspect: any, near: any, far: any): any;
400
405
  /**
401
406
  * Generates a perspective projection matrix with the given field of view.
402
407
  * This is primarily useful for generating projection matrices to be used
@@ -408,7 +413,7 @@ export function perspectiveZO(out: mat4, fovy: number, aspect: number, near: num
408
413
  * @param {number} far Far bound of the frustum
409
414
  * @returns {mat4} out
410
415
  */
411
- export function perspectiveFromFieldOfView(out: mat4, fov: any, near: number, far: number): mat4;
416
+ export declare function perspectiveFromFieldOfView(out: any, fov: any, near: any, far: any): any;
412
417
  /**
413
418
  * Generates a orthogonal projection matrix with the given bounds.
414
419
  * The near/far clip planes correspond to a normalized device coordinate Z range of [-1, 1],
@@ -423,7 +428,12 @@ export function perspectiveFromFieldOfView(out: mat4, fov: any, near: number, fa
423
428
  * @param {number} far Far bound of the frustum
424
429
  * @returns {mat4} out
425
430
  */
426
- export function orthoNO(out: mat4, left: number, right: number, bottom: number, top: number, near: number, far: number): mat4;
431
+ export declare function orthoNO(out: any, left: any, right: any, bottom: any, top: any, near: any, far: any): any;
432
+ /**
433
+ * Alias for {@link mat4.orthoNO}
434
+ * @function
435
+ */
436
+ export declare const ortho: typeof orthoNO;
427
437
  /**
428
438
  * Generates a orthogonal projection matrix with the given bounds.
429
439
  * The near/far clip planes correspond to a normalized device coordinate Z range of [0, 1],
@@ -438,7 +448,7 @@ export function orthoNO(out: mat4, left: number, right: number, bottom: number,
438
448
  * @param {number} far Far bound of the frustum
439
449
  * @returns {mat4} out
440
450
  */
441
- export function orthoZO(out: mat4, left: number, right: number, bottom: number, top: number, near: number, far: number): mat4;
451
+ export declare function orthoZO(out: any, left: any, right: any, bottom: any, top: any, near: any, far: any): any;
442
452
  /**
443
453
  * Generates a look-at matrix with the given eye position, focal point, and up axis.
444
454
  * If you want a matrix that actually makes an object look at another object, you should use targetTo instead.
@@ -449,7 +459,7 @@ export function orthoZO(out: mat4, left: number, right: number, bottom: number,
449
459
  * @param {ReadonlyVec3} up vec3 pointing up
450
460
  * @returns {mat4} out
451
461
  */
452
- export function lookAt(out: mat4, eye: ReadonlyVec3, center: ReadonlyVec3, up: ReadonlyVec3): mat4;
462
+ export declare function lookAt(out: any, eye: any, center: any, up: any): any;
453
463
  /**
454
464
  * Generates a matrix that makes something look at something else.
455
465
  *
@@ -459,21 +469,21 @@ export function lookAt(out: mat4, eye: ReadonlyVec3, center: ReadonlyVec3, up: R
459
469
  * @param {ReadonlyVec3} up vec3 pointing up
460
470
  * @returns {mat4} out
461
471
  */
462
- export function targetTo(out: mat4, eye: ReadonlyVec3, target: any, up: ReadonlyVec3): mat4;
472
+ export declare function targetTo(out: any, eye: any, target: any, up: any): any;
463
473
  /**
464
474
  * Returns a string representation of a mat4
465
475
  *
466
476
  * @param {ReadonlyMat4} a matrix to represent as a string
467
477
  * @returns {String} string representation of the matrix
468
478
  */
469
- export function str(a: ReadonlyMat4): string;
479
+ export declare function str(a: any): string;
470
480
  /**
471
481
  * Returns Frobenius norm of a mat4
472
482
  *
473
483
  * @param {ReadonlyMat4} a the matrix to calculate Frobenius norm of
474
484
  * @returns {Number} Frobenius norm
475
485
  */
476
- export function frob(a: ReadonlyMat4): number;
486
+ export declare function frob(a: any): number;
477
487
  /**
478
488
  * Adds two mat4's
479
489
  *
@@ -482,7 +492,7 @@ export function frob(a: ReadonlyMat4): number;
482
492
  * @param {ReadonlyMat4} b the second operand
483
493
  * @returns {mat4} out
484
494
  */
485
- export function add(out: mat4, a: ReadonlyMat4, b: ReadonlyMat4): mat4;
495
+ export declare function add(out: any, a: any, b: any): any;
486
496
  /**
487
497
  * Subtracts matrix b from matrix a
488
498
  *
@@ -491,7 +501,7 @@ export function add(out: mat4, a: ReadonlyMat4, b: ReadonlyMat4): mat4;
491
501
  * @param {ReadonlyMat4} b the second operand
492
502
  * @returns {mat4} out
493
503
  */
494
- export function subtract(out: mat4, a: ReadonlyMat4, b: ReadonlyMat4): mat4;
504
+ export declare function subtract(out: any, a: any, b: any): any;
495
505
  /**
496
506
  * Multiply each element of the matrix by a scalar.
497
507
  *
@@ -500,7 +510,7 @@ export function subtract(out: mat4, a: ReadonlyMat4, b: ReadonlyMat4): mat4;
500
510
  * @param {Number} b amount to scale the matrix's elements by
501
511
  * @returns {mat4} out
502
512
  */
503
- export function multiplyScalar(out: mat4, a: ReadonlyMat4, b: number): mat4;
513
+ export declare function multiplyScalar(out: any, a: any, b: any): any;
504
514
  /**
505
515
  * Adds two mat4's after multiplying each element of the second operand by a scalar value.
506
516
  *
@@ -510,7 +520,7 @@ export function multiplyScalar(out: mat4, a: ReadonlyMat4, b: number): mat4;
510
520
  * @param {Number} scale the amount to scale b's elements by before adding
511
521
  * @returns {mat4} out
512
522
  */
513
- export function multiplyScalarAndAdd(out: mat4, a: ReadonlyMat4, b: ReadonlyMat4, scale: number): mat4;
523
+ export declare function multiplyScalarAndAdd(out: any, a: any, b: any, scale: any): any;
514
524
  /**
515
525
  * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===)
516
526
  *
@@ -518,7 +528,7 @@ export function multiplyScalarAndAdd(out: mat4, a: ReadonlyMat4, b: ReadonlyMat4
518
528
  * @param {ReadonlyMat4} b The second matrix.
519
529
  * @returns {Boolean} True if the matrices are equal, false otherwise.
520
530
  */
521
- export function exactEquals(a: ReadonlyMat4, b: ReadonlyMat4): boolean;
531
+ export declare function exactEquals(a: any, b: any): boolean;
522
532
  /**
523
533
  * Returns whether or not the matrices have approximately the same elements in the same position.
524
534
  *
@@ -526,52 +536,15 @@ export function exactEquals(a: ReadonlyMat4, b: ReadonlyMat4): boolean;
526
536
  * @param {ReadonlyMat4} b The second matrix.
527
537
  * @returns {Boolean} True if the matrices are equal, false otherwise.
528
538
  */
529
- export function equals(a: ReadonlyMat4, b: ReadonlyMat4): boolean;
539
+ export declare function equals(a: any, b: any): boolean;
530
540
  /**
531
- * Generates a perspective projection matrix with the given bounds.
532
- * The near/far clip planes correspond to a normalized device coordinate Z range of [-1, 1],
533
- * which matches WebGL/OpenGL's clip volume.
534
- * Passing null/undefined/no value for far will generate infinite projection matrix.
535
- *
536
- * @param {mat4} out mat4 frustum matrix will be written into
537
- * @param {number} fovy Vertical field of view in radians
538
- * @param {number} aspect Aspect ratio. typically viewport width/height
539
- * @param {number} near Near bound of the frustum
540
- * @param {number} far Far bound of the frustum, can be null or Infinity
541
- * @returns {mat4} out
541
+ * Alias for {@link mat4.multiply}
542
+ * @function
542
543
  */
543
- export function perspective(out: mat4, fovy: number, aspect: number, near: number, far: number): mat4;
544
+ export declare const mul: typeof multiply;
544
545
  /**
545
- * Generates a orthogonal projection matrix with the given bounds.
546
- * The near/far clip planes correspond to a normalized device coordinate Z range of [-1, 1],
547
- * which matches WebGL/OpenGL's clip volume.
548
- *
549
- * @param {mat4} out mat4 frustum matrix will be written into
550
- * @param {number} left Left bound of the frustum
551
- * @param {number} right Right bound of the frustum
552
- * @param {number} bottom Bottom bound of the frustum
553
- * @param {number} top Top bound of the frustum
554
- * @param {number} near Near bound of the frustum
555
- * @param {number} far Far bound of the frustum
556
- * @returns {mat4} out
557
- */
558
- export function ortho(out: mat4, left: number, right: number, bottom: number, top: number, near: number, far: number): mat4;
559
- /**
560
- * Multiplies two mat4s
561
- *
562
- * @param {mat4} out the receiving matrix
563
- * @param {ReadonlyMat4} a the first operand
564
- * @param {ReadonlyMat4} b the second operand
565
- * @returns {mat4} out
566
- */
567
- export function mul(out: mat4, a: ReadonlyMat4, b: ReadonlyMat4): mat4;
568
- /**
569
- * Subtracts matrix b from matrix a
570
- *
571
- * @param {mat4} out the receiving matrix
572
- * @param {ReadonlyMat4} a the first operand
573
- * @param {ReadonlyMat4} b the second operand
574
- * @returns {mat4} out
546
+ * Alias for {@link mat4.subtract}
547
+ * @function
575
548
  */
576
- export function sub(out: mat4, a: ReadonlyMat4, b: ReadonlyMat4): mat4;
549
+ export declare const sub: typeof subtract;
577
550
  //# sourceMappingURL=mat4.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mat4.d.ts","sourceRoot":"","sources":["../../src/gl-matrix/mat4.js"],"names":[],"mappings":"AAKA;;;GAGG;AAEH;;;;GAIG;AACH,+CAqBC;AAED;;;;;GAKG;AACH,yBAHW,YAAY,GACV,IAAI,CAqBhB;AAED;;;;;;GAMG;AACH,0BAJW,IAAI,KACJ,YAAY,GACV,IAAI,CAoBhB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,4OAFa,IAAI,CAsChB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,yBAnBW,IAAI,mNAiBF,IAAI,CAsChB;AAED;;;;;GAKG;AACH,8BAHW,IAAI,GACF,IAAI,CAoBhB;AAED;;;;;;GAMG;AACH,+BAJW,IAAI,KACJ,YAAY,GACV,IAAI,CA4ChB;AAED;;;;;;GAMG;AACH,4BAJW,IAAI,KACJ,YAAY,GACV,IAAI,CA2DhB;AAED;;;;;;GAMG;AACH,6BAJW,IAAI,KACJ,YAAY,GACV,IAAI,CAkDhB;AAED;;;;;GAKG;AACH,+BAHW,YAAY,UAkCtB;AAED;;;;;;;GAOG;AACH,8BALW,IAAI,KACJ,YAAY,KACZ,YAAY,GACV,IAAI,CAyDhB;AAED;;;;;;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