Safe Haskell | Safe-Infered |
---|

2-dimensional linear transformations.

- data Transform2 = Transform2 {}
- transformP2 :: Transform2 -> Vector2 -> Vector2

# Documentation

data Transform2 Source

The type of 2D linear transformations.

Note the `Monoid`

instance, which gives you access to the identity transform (`mempty`

) and the ability to combine a series of transforms into a single transform (`mappend`

).

transformP2 :: Transform2 -> Vector2 -> Vector2Source

Apply a 2D transformation to a 2D point, yielding a new 2D point.