@@ -52,7 +52,7 @@ <h1 class="page-title">Source: mat2.js</h1>
5252/**
5353 * Creates a new mat2 initialized with values from an existing matrix
5454 *
55- * @param {mat2 } a matrix to clone
55+ * @param {ReadonlyMat2 } a matrix to clone
5656 * @returns {mat2} a new 2x2 matrix
5757 */
5858export function clone(a) {
@@ -68,7 +68,7 @@ <h1 class="page-title">Source: mat2.js</h1>
6868 * Copy the values from one mat2 to another
6969 *
7070 * @param {mat2} out the receiving matrix
71- * @param {mat2 } a the source matrix
71+ * @param {ReadonlyMat2 } a the source matrix
7272 * @returns {mat2} out
7373 */
7474export function copy(out, a) {
@@ -133,7 +133,7 @@ <h1 class="page-title">Source: mat2.js</h1>
133133 * Transpose the values of a mat2
134134 *
135135 * @param {mat2} out the receiving matrix
136- * @param {mat2 } a the source matrix
136+ * @param {ReadonlyMat2 } a the source matrix
137137 * @returns {mat2} out
138138 */
139139export function transpose(out, a) {
@@ -157,7 +157,7 @@ <h1 class="page-title">Source: mat2.js</h1>
157157 * Inverts a mat2
158158 *
159159 * @param {mat2} out the receiving matrix
160- * @param {mat2 } a the source matrix
160+ * @param {ReadonlyMat2 } a the source matrix
161161 * @returns {mat2} out
162162 */
163163export function invert(out, a) {
@@ -186,7 +186,7 @@ <h1 class="page-title">Source: mat2.js</h1>
186186 * Calculates the adjugate of a mat2
187187 *
188188 * @param {mat2} out the receiving matrix
189- * @param {mat2 } a the source matrix
189+ * @param {ReadonlyMat2 } a the source matrix
190190 * @returns {mat2} out
191191 */
192192export function adjoint(out, a) {
@@ -203,7 +203,7 @@ <h1 class="page-title">Source: mat2.js</h1>
203203/**
204204 * Calculates the determinant of a mat2
205205 *
206- * @param {mat2 } a the source matrix
206+ * @param {ReadonlyMat2 } a the source matrix
207207 * @returns {Number} determinant of a
208208 */
209209export function determinant(a) {
@@ -214,8 +214,8 @@ <h1 class="page-title">Source: mat2.js</h1>
214214 * Multiplies two mat2's
215215 *
216216 * @param {mat2} out the receiving matrix
217- * @param {mat2 } a the first operand
218- * @param {mat2 } b the second operand
217+ * @param {ReadonlyMat2 } a the first operand
218+ * @param {ReadonlyMat2 } b the second operand
219219 * @returns {mat2} out
220220 */
221221export function multiply(out, a, b) {
@@ -238,7 +238,7 @@ <h1 class="page-title">Source: mat2.js</h1>
238238 * Rotates a mat2 by the given angle
239239 *
240240 * @param {mat2} out the receiving matrix
241- * @param {mat2 } a the matrix to rotate
241+ * @param {ReadonlyMat2 } a the matrix to rotate
242242 * @param {Number} rad the angle to rotate the matrix by
243243 * @returns {mat2} out
244244 */
@@ -260,8 +260,8 @@ <h1 class="page-title">Source: mat2.js</h1>
260260 * Scales the mat2 by the dimensions in the given vec2
261261 *
262262 * @param {mat2} out the receiving matrix
263- * @param {mat2 } a the matrix to rotate
264- * @param {vec2 } v the vec2 to scale the matrix by
263+ * @param {ReadonlyMat2 } a the matrix to rotate
264+ * @param {ReadonlyVec2 } v the vec2 to scale the matrix by
265265 * @returns {mat2} out
266266 **/
267267export function scale(out, a, v) {
@@ -307,7 +307,7 @@ <h1 class="page-title">Source: mat2.js</h1>
307307 * mat2.scale(dest, dest, vec);
308308 *
309309 * @param {mat2} out mat2 receiving operation result
310- * @param {vec2 } v Scaling vector
310+ * @param {ReadonlyVec2 } v Scaling vector
311311 * @returns {mat2} out
312312 */
313313export function fromScaling(out, v) {
@@ -321,7 +321,7 @@ <h1 class="page-title">Source: mat2.js</h1>
321321/**
322322 * Returns a string representation of a mat2
323323 *
324- * @param {mat2 } a matrix to represent as a string
324+ * @param {ReadonlyMat2 } a matrix to represent as a string
325325 * @returns {String} string representation of the matrix
326326 */
327327export function str(a) {
@@ -331,7 +331,7 @@ <h1 class="page-title">Source: mat2.js</h1>
331331/**
332332 * Returns Frobenius norm of a mat2
333333 *
334- * @param {mat2 } a the matrix to calculate Frobenius norm of
334+ * @param {ReadonlyMat2 } a the matrix to calculate Frobenius norm of
335335 * @returns {Number} Frobenius norm
336336 */
337337export function frob(a) {
@@ -340,10 +340,10 @@ <h1 class="page-title">Source: mat2.js</h1>
340340
341341/**
342342 * Returns L, D and U matrices (Lower triangular, Diagonal and Upper triangular) by factorizing the input matrix
343- * @param {mat2 } L the lower triangular matrix
344- * @param {mat2 } D the diagonal matrix
345- * @param {mat2 } U the upper triangular matrix
346- * @param {mat2 } a the input matrix to factorize
343+ * @param {ReadonlyMat2 } L the lower triangular matrix
344+ * @param {ReadonlyMat2 } D the diagonal matrix
345+ * @param {ReadonlyMat2 } U the upper triangular matrix
346+ * @param {ReadonlyMat2 } a the input matrix to factorize
347347 */
348348
349349export function LDU(L, D, U, a) {
@@ -358,8 +358,8 @@ <h1 class="page-title">Source: mat2.js</h1>
358358 * Adds two mat2's
359359 *
360360 * @param {mat2} out the receiving matrix
361- * @param {mat2 } a the first operand
362- * @param {mat2 } b the second operand
361+ * @param {ReadonlyMat2 } a the first operand
362+ * @param {ReadonlyMat2 } b the second operand
363363 * @returns {mat2} out
364364 */
365365export function add(out, a, b) {
@@ -374,8 +374,8 @@ <h1 class="page-title">Source: mat2.js</h1>
374374 * Subtracts matrix b from matrix a
375375 *
376376 * @param {mat2} out the receiving matrix
377- * @param {mat2 } a the first operand
378- * @param {mat2 } b the second operand
377+ * @param {ReadonlyMat2 } a the first operand
378+ * @param {ReadonlyMat2 } b the second operand
379379 * @returns {mat2} out
380380 */
381381export function subtract(out, a, b) {
@@ -389,8 +389,8 @@ <h1 class="page-title">Source: mat2.js</h1>
389389/**
390390 * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===)
391391 *
392- * @param {mat2 } a The first matrix.
393- * @param {mat2 } b The second matrix.
392+ * @param {ReadonlyMat2 } a The first matrix.
393+ * @param {ReadonlyMat2 } b The second matrix.
394394 * @returns {Boolean} True if the matrices are equal, false otherwise.
395395 */
396396export function exactEquals(a, b) {
@@ -400,8 +400,8 @@ <h1 class="page-title">Source: mat2.js</h1>
400400/**
401401 * Returns whether or not the matrices have approximately the same elements in the same position.
402402 *
403- * @param {mat2 } a The first matrix.
404- * @param {mat2 } b The second matrix.
403+ * @param {ReadonlyMat2 } a The first matrix.
404+ * @param {ReadonlyMat2 } b The second matrix.
405405 * @returns {Boolean} True if the matrices are equal, false otherwise.
406406 */
407407export function equals(a, b) {
@@ -429,7 +429,7 @@ <h1 class="page-title">Source: mat2.js</h1>
429429 * Multiply each element of the matrix by a scalar.
430430 *
431431 * @param {mat2} out the receiving matrix
432- * @param {mat2 } a the matrix to scale
432+ * @param {ReadonlyMat2 } a the matrix to scale
433433 * @param {Number} b amount to scale the matrix's elements by
434434 * @returns {mat2} out
435435 */
@@ -445,8 +445,8 @@ <h1 class="page-title">Source: mat2.js</h1>
445445 * Adds two mat2's after multiplying each element of the second operand by a scalar value.
446446 *
447447 * @param {mat2} out the receiving vector
448- * @param {mat2 } a the first operand
449- * @param {mat2 } b the second operand
448+ * @param {ReadonlyMat2 } a the first operand
449+ * @param {ReadonlyMat2 } b the second operand
450450 * @param {Number} scale the amount to scale b's elements by before adding
451451 * @returns {mat2} out
452452 */
@@ -485,7 +485,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-gl
485485< br class ="clear ">
486486
487487< footer >
488- Documentation generated by < a href ="https://github.com/jsdoc/jsdoc "> JSDoc 3.6.3</ a > on Fri Feb 14 2020 09:28:42 GMT+0100 (Central European Standard Time)
488+ Documentation generated by < a href ="https://github.com/jsdoc/jsdoc "> JSDoc 3.6.3</ a > on Wed Apr 01 2020 11:00:40 GMT+0200 (Central European Summer Time)
489489</ footer >
490490
491491< script > prettyPrint ( ) ; </ script >
0 commit comments