Safe Haskell | Safe-Infered |
---|
1-dimensional linear transformations.
- 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
).
transformP1 :: Transform1 -> Vector1 -> Vector1Source
Apply a 1D transformation to a 1D point, yielding a new 1D point.