Added jsdoc for public matrix transformations

copied from processing.js