= Matrix :author: :revnumber: :revdate: 2020/07/15 == Matrix See link:{link-javadoc}/com/jme3/math/Matrix3f.html[Javadoc of Matrix3f] and link:{link-javadoc}/com/jme3/math/Matrix4f.html[Javadoc of Matrix4f] === Definition A Matrix is typically used as a _linear transformation_ to map vectors to vectors. That is: Y = MX where X is a Vector and M is a Matrix applying any or all transformations (scale, rotate, translate). There are a few special matrices: _zero matrix_ is the Matrix with all zero entries. [cols="3", options="header"] |=== a|0 a|0 a|0 a|0 a|0 a|0 a|0 a|0 a|0 |=== The _Identity Matrix_ is the matrix with 1 on the diagonal entries and 0 for all other entries. [cols="3", options="header"] |=== a|1 a|0 a|0 a|0 a|1 a|0 a|0 a|0 a|1 |=== A Matrix is _invertible_ if there is a matrix _M^-1^_ where _MM^-1^ = M^-1^ = I_. The _transpose_ of a matrix _M = [m~ij~]_ is _M^T^ = [m~ji~]_. This causes the rows of _M_ to become the columns of _M^T^_. [cols="7", options="header"] |=== a|1 a|1 a|1