hps-0.2: Haskell Postscript

Graphics.PS.Matrix

Synopsis

Documentation

data Matrix Source

Transformation matrix data type.

Constructors

Matrix R R R R R R 

Instances

identity :: MSource

The identity matrix.

translation :: R -> R -> MSource

A translation matrix with independent x and y offsets.

scaling :: R -> R -> MSource

A scaling matrix with independent x and y scalars.

rotation :: R -> MSource

A rotation matrix through the indicated angle (in radians).