@@ -31,12 +31,12 @@ identity = Native.Transform2D.identity
3131{-| Creates a transformation matrix. This lets you create transforms
3232such as scales, shears, reflections, and translations.
3333
34− matrix a b c d dx dy
34+ matrix a b c d x y
3535
36− / a b dx \
37− \ c d dy /
36+ / a b x \
37+ \ c d y /
3838
39−Note that `dx` and `dy` are the translation values.
39+Note that `x` and `y` are the translation values.
4040-}
4141matrix : Float -> Float -> Float -> Float -> Float -> Float -> Transform2D
4242matrix = Native.Transform2D.matrix
@@ -55,8 +55,7 @@ rotation = Native.Transform2D.rotation
5555 translation x y
5656
5757 / 1 0 x \
58− | 0 1 y |
59− \ 0 0 1 /
58+ \ 0 1 y /
6059-}
6160translation : Float -> Float -> Transform2D
6261translation x y = matrix 1 0 0 1 x y
@@ -77,14 +76,15 @@ scaleX x = matrix x 0 0 1 0 0
7776
7877{-| Creates a transformation for vertical scaling -}
7978scaleY : Float -> Transform2D
80−scaleY y = matrix y 0 0 1 0 0
79+scaleY y = matrix 1 0 0 y 0 0
8180
8281{-| Multiplies two transforms together:
8382
84− multiply a b
83+ multiply m n
8584
86− / a11 a12 \ . / b11 b12 \
87− \ a21 a22 / \ b21 b22 /
85+ / ma mb mx \ / na nb nx \
86+ | mc md my | . | nc nd ny |
87+ \ 0 0 1 / \ 0 0 1 /
8888-}
8989multiply : Transform2D -> Transform2D -> Transform2D
9090multiply = Native.Transform2D.multiply