Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
2-dimensional linear transformations.
Synopsis
- 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
).
Instances
Monoid Transform2 Source # | |
Defined in Data.Vector.Transform.T2 mempty :: Transform2 # mappend :: Transform2 -> Transform2 -> Transform2 # mconcat :: [Transform2] -> Transform2 # | |
Semigroup Transform2 Source # | |
Defined in Data.Vector.Transform.T2 (<>) :: Transform2 -> Transform2 -> Transform2 # sconcat :: NonEmpty Transform2 -> Transform2 # stimes :: Integral b => b -> Transform2 -> Transform2 # | |
Show Transform2 Source # | |
Defined in Data.Vector.Transform.T2 showsPrec :: Int -> Transform2 -> ShowS # show :: Transform2 -> String # showList :: [Transform2] -> ShowS # | |
Eq Transform2 Source # | |
Defined in Data.Vector.Transform.T2 (==) :: Transform2 -> Transform2 -> Bool # (/=) :: Transform2 -> Transform2 -> Bool # |
transformP2 :: Transform2 -> Vector2 -> Vector2 Source #
Apply a 2D transformation to a 2D point, yielding a new 2D point.