Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
1-dimensional linear transformations.
Synopsis
- data Transform1 = Transform1 {}
- transformP1 :: Transform1 -> Vector1 -> Vector1
Documentation
data Transform1 Source #
The type of 1D linear transformations. Essentially, this is applying a linear function to a number.
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 Transform1 Source # | |
Defined in Data.Vector.Transform.T1 mempty :: Transform1 # mappend :: Transform1 -> Transform1 -> Transform1 # mconcat :: [Transform1] -> Transform1 # | |
Semigroup Transform1 Source # | |
Defined in Data.Vector.Transform.T1 (<>) :: Transform1 -> Transform1 -> Transform1 # sconcat :: NonEmpty Transform1 -> Transform1 # stimes :: Integral b => b -> Transform1 -> Transform1 # | |
Show Transform1 Source # | |
Defined in Data.Vector.Transform.T1 showsPrec :: Int -> Transform1 -> ShowS # show :: Transform1 -> String # showList :: [Transform1] -> ShowS # | |
Eq Transform1 Source # | |
Defined in Data.Vector.Transform.T1 (==) :: Transform1 -> Transform1 -> Bool # (/=) :: Transform1 -> Transform1 -> Bool # |
transformP1 :: Transform1 -> Vector1 -> Vector1 Source #
Apply a 1D transformation to a 1D point, yielding a new 1D point.