@@ -18,8 +18,8 @@ data Transform2D = Transform2D
18not change anything, but it can come in handy as a default or
18not change anything, but it can come in handy as a default or
24identity : Transform2D
24identity : Transform2D
25identity = Native.Transform2D.identity
25identity = Native.Transform2D.identity
@@ -29,8 +29,8 @@ such as scales, shears, reflections, and translations.
30 matrix a b c d dx dy
30 matrix a b c d dx dy
35And `dx` and `dy` are the translation values.
35And `dx` and `dy` are the translation values.
@@ -40,8 +40,8 @@ matrix = Native.Transform2D.matrix
40{-| Creates a [rotation matrix](http://en.wikipedia.org/wiki/Rotation_matrix).
40{-| Creates a [rotation matrix](http://en.wikipedia.org/wiki/Rotation_matrix).
41Given an angle t, it creates a counterclockwise rotation matrix:
41Given an angle t, it creates a counterclockwise rotation matrix:
43− / cos t -sin t \\
43+ / cos t -sin t \
44− \\ sin t cos t /
44+ \ sin t cos t /
46rotation : Float -> Transform2D
46rotation : Float -> Transform2D
47rotation = Native.Transform2D.rotation
47rotation = Native.Transform2D.rotation
@@ -50,8 +50,8 @@ rotation = Native.Transform2D.rotation
51 multiply a b
51 multiply a b
53− / a11 a12 \\ . / b11 b12 \\
53+ / a11 a12 \ . / b11 b12 \
54− \\ a21 a22 / \\ b21 b22 /
54+ \ a21 a22 / \ b21 b22 /
56multiply : Transform2D -> Transform2D -> Transform2D
56multiply : Transform2D -> Transform2D -> Transform2D
57multiply = Native.Transform2D.multiply
57multiply = Native.Transform2D.multiply