Safe Haskell | Safe-Infered |
---|
4-dimensional linear transformations.
- data Transform4 = Transform4 {
- t4_XX :: !Scalar
- t4_YX :: !Scalar
- t4_ZX :: !Scalar
- t4_WX :: !Scalar
- t4_1X :: !Scalar
- t4_XY :: !Scalar
- t4_YY :: !Scalar
- t4_ZY :: !Scalar
- t4_WY :: !Scalar
- t4_1Y :: !Scalar
- t4_XZ :: !Scalar
- t4_YZ :: !Scalar
- t4_ZZ :: !Scalar
- t4_WZ :: !Scalar
- t4_1Z :: !Scalar
- t4_XW :: !Scalar
- t4_YW :: !Scalar
- t4_ZW :: !Scalar
- t4_WW :: !Scalar
- t4_1W :: !Scalar
- transformP4 :: Transform4 -> Vector4 -> Vector4
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
).
Transform4 | |
|
transformP4 :: Transform4 -> Vector4 -> Vector4Source
Apply a 4D transformation to a 4D point, yielding a new 4D point.