hps-0.11: Haskell Postscript

Graphics.PS.Matrix

Description

Matrix type and functions.

Synopsis

Documentation

type R = DoubleSource

Synonym for Double.

data Matrix Source

Transformation matrix data type.

Constructors

Matrix R R R R R R 

Instances

identity :: MatrixSource

The identity matrix.

translation :: R -> R -> MatrixSource

A translation matrix with independent x and y offsets.

scaling :: R -> R -> MatrixSource

A scaling matrix with independent x and y scalars.

rotation :: R -> MatrixSource

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