@@ -37,7 +37,9 @@ Elm.Native.Transform2D.make = function(elm) {
3737 var s = Math.sin(t);
3838 return new A([c, -s, 0, s, c, 0]);
3939 }
40−
40+ function translation(x,y) {
41+ return new A([1,0,x,0,1,y]);
42+ }
4143 function rotate(t,m) {
4244 var c = Math.cos(t);
4345 var s = Math.sin(t);
@@ -84,6 +86,7 @@ Elm.Native.Transform2D.make = function(elm) {
8486 identity:identity,
8587 matrix:F6(matrix),
8688 rotation:rotation,
89+ translation:F2(translation),
8790 multiply:F2(multiply)
8891 /*
8992 transform:F7(transform),