UNPKG

transformation-matrix

Version:

2d transformation matrix functions written in ES6 syntax. Tree shaking ready!

20 lines (19 loc) 269 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.identity = identity; /** * Identity matrix * @returns {Matrix} Affine Matrix */ function identity() { return { a: 1, c: 0, e: 0, b: 0, d: 1, f: 0 }; }