Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Graphics.PS.Transform
Description
Class and associated functions for Matrix
transformations.
- class Transformable a
- translate :: Transformable a => Double -> Double -> a -> a
- scale :: Transformable a => Double -> Double -> a -> a
- rotate :: Transformable a => Double -> a -> a
Documentation
class Transformable a Source
Values that can be transformed in relation to a Matrix
.
Minimal complete definition
transform
Instances
translate :: Transformable a => Double -> Double -> a -> a Source
Translation in x and y.
scale :: Transformable a => Double -> Double -> a -> a Source
Scaling in x and y.
rotate :: Transformable a => Double -> a -> a Source
Rotation, in radians.