Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
4-dimensional linear transformations.
Documentation
data Transform4 Source #
The type of 4D 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 Transform4 Source # | |
Defined in Data.Vector.Transform.T4 mempty :: Transform4 # mappend :: Transform4 -> Transform4 -> Transform4 # mconcat :: [Transform4] -> Transform4 # | |
Semigroup Transform4 Source # | |
Defined in Data.Vector.Transform.T4 (<>) :: Transform4 -> Transform4 -> Transform4 # sconcat :: NonEmpty Transform4 -> Transform4 # stimes :: Integral b => b -> Transform4 -> Transform4 # | |
Show Transform4 Source # | |
Defined in Data.Vector.Transform.T4 showsPrec :: Int -> Transform4 -> ShowS # show :: Transform4 -> String # showList :: [Transform4] -> ShowS # | |
Eq Transform4 Source # | |
Defined in Data.Vector.Transform.T4 (==) :: Transform4 -> Transform4 -> Bool # (/=) :: Transform4 -> Transform4 -> Bool # |
transformP4 :: Transform4 -> Vector4 -> Vector4 Source #
Apply a 4D transformation to a 4D point, yielding a new 4D point.