reanimate-1.1.5.0: Animation library based on SVGs.
Safe HaskellNone
LanguageHaskell2010

Reanimate.Transform

Description

2D transformation matrices capable of translating, scaling, rotating, and skewing.

Synopsis

Documentation

identity :: Matrix Coord Source #

Identity matrix.

transformPoints identity x = x

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.