on master help sign in
Get rid of double backslashes, which have mysteriously changed behavior and now actually show up twice
commit5b2ba67e61e6ecf50fcf198e1147b37ee3592af8 authorEvan Czaplicki <info@elm-lang.org> dateThu 17 Oct 2013, 20:32 (13 years ago) parent5ad0ec5
1 file changed+8−8
libraries/Transform2D.elm+8−8
libraries/Transform2D.elm+8−8
@@ -18,8 +18,8 @@ data Transform2D = Transform2D
1818not change anything, but it can come in handy as a default or
1919base case.
2020
21− / 1 0 \\
22− \\ 0 1 /
21+ / 1 0 \
22+ \ 0 1 /
2323-}
2424identity : Transform2D
2525identity = Native.Transform2D.identity
@@ -29,8 +29,8 @@ such as scales, shears, reflections, and translations.
2929
3030 matrix a b c d dx dy
3131
32− / a b \\
33− \\ c d /
32+ / a b \
33+ \ c d /
3434
3535And `dx` and `dy` are the translation values.
3636-}
@@ -40,8 +40,8 @@ matrix = Native.Transform2D.matrix
4040{-| Creates a [rotation matrix](http://en.wikipedia.org/wiki/Rotation_matrix).
4141Given an angle t, it creates a counterclockwise rotation matrix:
4242
43− / cos t -sin t \\
44− \\ sin t cos t /
43+ / cos t -sin t \
44+ \ sin t cos t /
4545-}
4646rotation : Float -> Transform2D
4747rotation = Native.Transform2D.rotation
@@ -50,8 +50,8 @@ rotation = Native.Transform2D.rotation
5050
5151 multiply a b
5252
53− / a11 a12 \\ . / b11 b12 \\
54− \\ a21 a22 / \\ b21 b22 /
53+ / a11 a12 \ . / b11 b12 \
54+ \ a21 a22 / \ b21 b22 /
5555-}
5656multiply : Transform2D -> Transform2D -> Transform2D
5757multiply = Native.Transform2D.multiply