Provide a pixel transform to render events

This commit is contained in:
Tim Schaub
2018-11-15 13:50:39 +01:00
parent 65ceb9264e
commit bc347e3eb0
4 changed files with 39 additions and 37 deletions

View File

@@ -236,3 +236,7 @@ export function invert(transform) {
export function determinant(mat) {
return mat[0] * mat[3] - mat[1] * mat[2];
}
export function toString(mat) {
return 'matrix(' + mat.join(', ') + ')';
}