Three.js: Can I make a pr to add Matrix.print function ?

Created on 31 Mar 2020  路  2Comments  路  Source: mrdoob/three.js

Like this:

  print: function() {
    console.table([
      [this.elements[0], this.elements[4], this.elements[8], this.elements[12]],
      [this.elements[1], this.elements[5], this.elements[9], this.elements[13]],
      [this.elements[2], this.elements[6], this.elements[10], this.elements[14]],
      [this.elements[3], this.elements[7], this.elements[11], this.elements[15]],
    ])
  }

I personally very need this assistant function and not found yet.

Most helpful comment

All 2 comments

TBH, I do not vote to add such debugging features to math classes.

Was this page helpful?
0 / 5 - 0 ratings