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