Skip to content

Commit

Permalink
add geom/matrix33 member typings
Browse files Browse the repository at this point in the history
  • Loading branch information
pentamania committed May 28, 2021
1 parent c066c97 commit 7a0a1f9
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion src/geom/matrix33.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,30 @@ export class Matrix33 {
* mat1.m00 + mat2.m00; // => 2
* mat1.m01 - mat2.m01; // => 2
*
* @param {...Number} m00, m01,... 各要素の値
* @param {...number} m00, m01,... 各要素の値
*/
constructor() {
/** @type {number} */
this.m00;
/** @type {number} */
this.m01;
/** @type {number} */
this.m02;

/** @type {number} */
this.m10;
/** @type {number} */
this.m11;
/** @type {number} */
this.m12;

/** @type {number} */
this.m20;
/** @type {number} */
this.m21;
/** @type {number} */
this.m22;

if (arguments.length >= 9) {
this.set.apply(this, arguments);
}
Expand Down

0 comments on commit 7a0a1f9

Please sign in to comment.