hps-0.16: Haskell Postscript

Safe HaskellSafe
LanguageHaskell98

Graphics.PS.Transform

Description

Class and associated functions for Matrix transformations.

Synopsis

Documentation

class Transformable t where Source #

Values that can be transformed in relation to a Matrix.

Minimal complete definition

mtransform

Methods

mtransform :: Matrix Double -> t -> t Source #

Instances

translate :: Transformable t => Double -> Double -> t -> t Source #

Translation in x and y.

scale :: Transformable t => Double -> Double -> t -> t Source #

Scaling in x and y.

rotate :: Transformable t => Double -> t -> t Source #

Rotation, in radians.