on master help sign in
Use s for scaling variable
commit76de6741c3579ceaccfd5c49a7ba3c5ba3fe2932 authorMichael Sondergaard <msond@cs.au.dk> dateThu 31 Oct 2013, 12:01 (13 years ago) parentb44a34e
1 file changed+4−4
libraries/Transform2D.elm+4−4
libraries/Transform2D.elm+4−4
@@ -63,13 +63,13 @@ translation x y = matrix 1 0 0 1 x y
6363
6464{-| Creates a transformation matrix for scaling by a all directions:
6565
66− scale a
66+ scale s
6767
68− / a 0 0 \
69− \ 0 a 0 /
68+ / s 0 0 \
69+ \ 0 s 0 /
7070-}
7171scale : Float -> Transform2D
72−scale a = matrix a 0 0 a 0 0
72+scale s = matrix s 0 0 s 0 0
7373
7474{-| Creates a transformation for horizontal scaling -}
7575scaleX : Float -> Transform2D