Convenience module to import all sizes of transform. (This doesn't include all the field names though, just the transform types and their application functions.)
- data Transform1
- transformP1 :: Transform1 -> Vector1 -> Vector1
- data Transform2
- transformP2 :: Transform2 -> Vector2 -> Vector2
- data Transform3
- transformP3 :: Transform3 -> Vector3 -> Vector3
- data Transform4
- transformP4 :: Transform4 -> Vector4 -> Vector4
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.
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
).
transformP2 :: Transform2 -> Vector2 -> Vector2Source
Apply a 2D transformation to a 2D point, yielding a new 2D point.
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
).
transformP3 :: Transform3 -> Vector3 -> Vector3Source
Apply a 3D transformation to a 3D point, yielding a new 3D point.
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
).
transformP4 :: Transform4 -> Vector4 -> Vector4Source
Apply a 4D transformation to a 4D point, yielding a new 4D point.