mat4-css-stringify
Stringifies a 4x4 matrix (stored in a 16 float flat array) into a matrix3d()
string. Useful in conjunction with mat4-css-parse.
var stringify = var parse = //get element's current transformationvar mat4 = // ... do some matrix operations on the array //then update the transformvar style = element 'transform' style
Usage
str = stringify(matrix)
Returns a matrix3d()
string representing the given 4x4 matrix (i.e. array with 16 floats).
License
MIT, see LICENSE.md for details.