Safe Haskell | None |
---|---|
Language | Haskell2010 |
2D transformation matrices capable of translating, scaling, rotating, and skewing.
Synopsis
- identity :: Matrix Coord
- transformPoint :: Matrix Coord -> RPoint -> RPoint
- mkMatrix :: Maybe [Transformation] -> Matrix Coord
- toTransformation :: Matrix Coord -> Transformation
Documentation
transformPoint :: Matrix Coord -> RPoint -> RPoint Source #
Apply a transformation matrix to a 2D point.
mkMatrix :: Maybe [Transformation] -> Matrix Coord Source #
Convert multiple SVG transformations into a single transformation matrix.
toTransformation :: Matrix Coord -> Transformation Source #
Convert a transformation matrix back into an SVG transformation.